Fix tests for UPnP options
This commit is contained in:
@@ -36,6 +36,8 @@ func TestDefaultValues(t *testing.T) {
|
|||||||
ReconnectIntervalS: 60,
|
ReconnectIntervalS: 60,
|
||||||
StartBrowser: true,
|
StartBrowser: true,
|
||||||
UPnPEnabled: true,
|
UPnPEnabled: true,
|
||||||
|
UPnPLease: 0,
|
||||||
|
UPnPRenewal: 30,
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg, err := Load(bytes.NewReader(nil), node1)
|
cfg, err := Load(bytes.NewReader(nil), node1)
|
||||||
@@ -190,6 +192,8 @@ func TestOverriddenValues(t *testing.T) {
|
|||||||
<reconnectionIntervalS>6000</reconnectionIntervalS>
|
<reconnectionIntervalS>6000</reconnectionIntervalS>
|
||||||
<startBrowser>false</startBrowser>
|
<startBrowser>false</startBrowser>
|
||||||
<upnpEnabled>false</upnpEnabled>
|
<upnpEnabled>false</upnpEnabled>
|
||||||
|
<upnpLeaseMinutes>60</upnpLeaseMinutes>
|
||||||
|
<upnpRenewalMinutes>15</upnpRenewalMinutes>
|
||||||
</options>
|
</options>
|
||||||
</configuration>
|
</configuration>
|
||||||
`)
|
`)
|
||||||
@@ -206,6 +210,8 @@ func TestOverriddenValues(t *testing.T) {
|
|||||||
ReconnectIntervalS: 6000,
|
ReconnectIntervalS: 6000,
|
||||||
StartBrowser: false,
|
StartBrowser: false,
|
||||||
UPnPEnabled: false,
|
UPnPEnabled: false,
|
||||||
|
UPnPLease: 60,
|
||||||
|
UPnPRenewal: 15,
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg, err := Load(bytes.NewReader(data), node1)
|
cfg, err := Load(bytes.NewReader(data), node1)
|
||||||
|
|||||||
Reference in New Issue
Block a user