Fix tests for UPnP options

This commit is contained in:
Jakob Borg 2014-08-14 12:59:09 +02:00
parent 198da910ed
commit 9f2948f595
1 changed files with 6 additions and 0 deletions

View File

@ -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)