Fix config tests for autoUpgradeIntervalH

This commit is contained in:
Jakob Borg
2014-09-28 22:38:10 +02:00
parent a76efd4166
commit 991dc32a0b
3 changed files with 31 additions and 28 deletions
+2
View File
@@ -37,6 +37,7 @@ func TestDefaultValues(t *testing.T) {
UPnPLease: 0,
UPnPRenewal: 30,
RestartOnWakeup: true,
AutoUpgradeIntervalH: 12,
}
cfg := New("test", device1)
@@ -128,6 +129,7 @@ func TestOverriddenValues(t *testing.T) {
UPnPLease: 60,
UPnPRenewal: 15,
RestartOnWakeup: false,
AutoUpgradeIntervalH: 24,
}
cfg, err := Load("testdata/overridenvalues.xml", device1)
+1
View File
@@ -16,5 +16,6 @@
<upnpLeaseMinutes>60</upnpLeaseMinutes>
<upnpRenewalMinutes>15</upnpRenewalMinutes>
<restartOnWakeup>false</restartOnWakeup>
<autoUpgradeIntervalH>24</autoUpgradeIntervalH>
</options>
</configuration>
Vendored Executable → Regular
View File