Fix config tests for autoUpgradeIntervalH
Conflicts: internal/config/config_test.go
This commit is contained in:
committed by
Audrius Butkevicius
parent
ee765990b7
commit
25c080b46f
@@ -38,6 +38,7 @@ func TestDefaultValues(t *testing.T) {
|
||||
UPnPLease: 0,
|
||||
UPnPRenewal: 30,
|
||||
RestartOnWakeup: true,
|
||||
AutoUpgradeIntervalH: 12,
|
||||
}
|
||||
|
||||
cfg := New("test", node1)
|
||||
@@ -130,6 +131,7 @@ func TestOverriddenValues(t *testing.T) {
|
||||
UPnPLease: 60,
|
||||
UPnPRenewal: 15,
|
||||
RestartOnWakeup: false,
|
||||
AutoUpgradeIntervalH: 24,
|
||||
}
|
||||
|
||||
cfg, err := Load("testdata/overridenvalues.xml", node1)
|
||||
|
||||
@@ -16,5 +16,6 @@
|
||||
<upnpLeaseMinutes>60</upnpLeaseMinutes>
|
||||
<upnpRenewalMinutes>15</upnpRenewalMinutes>
|
||||
<restartOnWakeup>false</restartOnWakeup>
|
||||
<autoUpgradeIntervalH>24</autoUpgradeIntervalH>
|
||||
</options>
|
||||
</configuration>
|
||||
|
||||
Reference in New Issue
Block a user