diff --git a/lib/config/config_test.go b/lib/config/config_test.go index fcadeef82..f9f35e325 100644 --- a/lib/config/config_test.go +++ b/lib/config/config_test.go @@ -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) diff --git a/lib/config/testdata/overridenvalues.xml b/lib/config/testdata/overridenvalues.xml index 8882d1d78..a67ec9a2b 100755 --- a/lib/config/testdata/overridenvalues.xml +++ b/lib/config/testdata/overridenvalues.xml @@ -1,8 +1,8 @@ - + :23000 false - syncthing.nym.se:22026 + udp4://syncthing.nym.se:22026 false false 42123 @@ -26,5 +26,6 @@ 42 60 120 + 5 diff --git a/internal/config/testdata/v11.xml b/lib/config/testdata/v11.xml similarity index 100% rename from internal/config/testdata/v11.xml rename to lib/config/testdata/v11.xml