mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 02:18:44 -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,
|
||||
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)
|
||||
|
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>
|
||||
<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>
|
||||
|
Loading…
Reference in New Issue
Block a user