Repair config tests

This commit is contained in:
Jakob Borg 2015-08-09 11:46:28 +02:00
parent 2bcb57c994
commit 49aa9399be
3 changed files with 5 additions and 2 deletions

View File

@ -55,6 +55,7 @@ func TestDefaultValues(t *testing.T) {
DatabaseBlockCacheMiB: 0,
PingTimeoutS: 30,
PingIdleTimeS: 60,
MinHomeDiskFreePct: 1,
}
cfg := New(device1)
@ -165,6 +166,7 @@ func TestOverriddenValues(t *testing.T) {
DatabaseBlockCacheMiB: 42,
PingTimeoutS: 60,
PingIdleTimeS: 120,
MinHomeDiskFreePct: 5,
}
cfg, err := Load("testdata/overridenvalues.xml", device1)

View File

@ -1,8 +1,8 @@
<configuration version="2">
<configuration version="11">
<options>
<listenAddress>:23000</listenAddress>
<allowDelete>false</allowDelete>
<globalAnnounceServer>syncthing.nym.se:22026</globalAnnounceServer>
<globalAnnounceServer>udp4://syncthing.nym.se:22026</globalAnnounceServer>
<globalAnnounceEnabled>false</globalAnnounceEnabled>
<localAnnounceEnabled>false</localAnnounceEnabled>
<localAnnouncePort>42123</localAnnouncePort>
@ -26,5 +26,6 @@
<databaseBlockCacheMiB>42</databaseBlockCacheMiB>
<pingTimeoutS>60</pingTimeoutS>
<pingIdleTimeS>120</pingIdleTimeS>
<minHomeDiskFreePct>5</minHomeDiskFreePct>
</options>
</configuration>