mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 10:28:49 -07:00
Repair config tests
This commit is contained in:
parent
2bcb57c994
commit
49aa9399be
@ -55,6 +55,7 @@ func TestDefaultValues(t *testing.T) {
|
|||||||
DatabaseBlockCacheMiB: 0,
|
DatabaseBlockCacheMiB: 0,
|
||||||
PingTimeoutS: 30,
|
PingTimeoutS: 30,
|
||||||
PingIdleTimeS: 60,
|
PingIdleTimeS: 60,
|
||||||
|
MinHomeDiskFreePct: 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg := New(device1)
|
cfg := New(device1)
|
||||||
@ -165,6 +166,7 @@ func TestOverriddenValues(t *testing.T) {
|
|||||||
DatabaseBlockCacheMiB: 42,
|
DatabaseBlockCacheMiB: 42,
|
||||||
PingTimeoutS: 60,
|
PingTimeoutS: 60,
|
||||||
PingIdleTimeS: 120,
|
PingIdleTimeS: 120,
|
||||||
|
MinHomeDiskFreePct: 5,
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg, err := Load("testdata/overridenvalues.xml", device1)
|
cfg, err := Load("testdata/overridenvalues.xml", device1)
|
||||||
|
5
lib/config/testdata/overridenvalues.xml
vendored
5
lib/config/testdata/overridenvalues.xml
vendored
@ -1,8 +1,8 @@
|
|||||||
<configuration version="2">
|
<configuration version="11">
|
||||||
<options>
|
<options>
|
||||||
<listenAddress>:23000</listenAddress>
|
<listenAddress>:23000</listenAddress>
|
||||||
<allowDelete>false</allowDelete>
|
<allowDelete>false</allowDelete>
|
||||||
<globalAnnounceServer>syncthing.nym.se:22026</globalAnnounceServer>
|
<globalAnnounceServer>udp4://syncthing.nym.se:22026</globalAnnounceServer>
|
||||||
<globalAnnounceEnabled>false</globalAnnounceEnabled>
|
<globalAnnounceEnabled>false</globalAnnounceEnabled>
|
||||||
<localAnnounceEnabled>false</localAnnounceEnabled>
|
<localAnnounceEnabled>false</localAnnounceEnabled>
|
||||||
<localAnnouncePort>42123</localAnnouncePort>
|
<localAnnouncePort>42123</localAnnouncePort>
|
||||||
@ -26,5 +26,6 @@
|
|||||||
<databaseBlockCacheMiB>42</databaseBlockCacheMiB>
|
<databaseBlockCacheMiB>42</databaseBlockCacheMiB>
|
||||||
<pingTimeoutS>60</pingTimeoutS>
|
<pingTimeoutS>60</pingTimeoutS>
|
||||||
<pingIdleTimeS>120</pingIdleTimeS>
|
<pingIdleTimeS>120</pingIdleTimeS>
|
||||||
|
<minHomeDiskFreePct>5</minHomeDiskFreePct>
|
||||||
</options>
|
</options>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
Loading…
Reference in New Issue
Block a user