mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 11:58:28 +00:00
Fix config tests for autoUpgradeIntervalH
This commit is contained in:
parent
a76efd4166
commit
991dc32a0b
@ -37,6 +37,7 @@ func TestDefaultValues(t *testing.T) {
|
|||||||
UPnPLease: 0,
|
UPnPLease: 0,
|
||||||
UPnPRenewal: 30,
|
UPnPRenewal: 30,
|
||||||
RestartOnWakeup: true,
|
RestartOnWakeup: true,
|
||||||
|
AutoUpgradeIntervalH: 12,
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg := New("test", device1)
|
cfg := New("test", device1)
|
||||||
@ -128,6 +129,7 @@ func TestOverriddenValues(t *testing.T) {
|
|||||||
UPnPLease: 60,
|
UPnPLease: 60,
|
||||||
UPnPRenewal: 15,
|
UPnPRenewal: 15,
|
||||||
RestartOnWakeup: false,
|
RestartOnWakeup: false,
|
||||||
|
AutoUpgradeIntervalH: 24,
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg, err := Load("testdata/overridenvalues.xml", device1)
|
cfg, err := Load("testdata/overridenvalues.xml", device1)
|
||||||
|
1
internal/config/testdata/overridenvalues.xml
vendored
1
internal/config/testdata/overridenvalues.xml
vendored
@ -16,5 +16,6 @@
|
|||||||
<upnpLeaseMinutes>60</upnpLeaseMinutes>
|
<upnpLeaseMinutes>60</upnpLeaseMinutes>
|
||||||
<upnpRenewalMinutes>15</upnpRenewalMinutes>
|
<upnpRenewalMinutes>15</upnpRenewalMinutes>
|
||||||
<restartOnWakeup>false</restartOnWakeup>
|
<restartOnWakeup>false</restartOnWakeup>
|
||||||
|
<autoUpgradeIntervalH>24</autoUpgradeIntervalH>
|
||||||
</options>
|
</options>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
0
internal/model/testdata/.stignore
vendored
Executable file → Normal file
0
internal/model/testdata/.stignore
vendored
Executable file → Normal file
Loading…
x
Reference in New Issue
Block a user