Fix test case
This commit is contained in:
parent
dc178c5d44
commit
c99b664f99
@ -147,12 +147,13 @@ func TestUPnPError(t *testing.T) {
|
|||||||
t.Fatalf("unexpected UPnPError ErrorDescription: %s",
|
t.Fatalf("unexpected UPnPError ErrorDescription: %s",
|
||||||
soapErr.Detail.UPnPError.ErrorDescription)
|
soapErr.Detail.UPnPError.ErrorDescription)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.EqualFold(string(soapErr.Detail.Raw), `
|
if !strings.EqualFold(string(soapErr.Detail.Raw), `
|
||||||
<UPnPError xmlns="urn:schemas-upnp-org:control-1-0">
|
<UPnPError xmlns="urn:schemas-upnp-org:control-1-0">
|
||||||
<errorCode>725</errorCode>
|
<errorCode>725</errorCode>
|
||||||
<errorDescription>OnlyPermanentLeasesSupported</errorDescription>
|
<errorDescription>OnlyPermanentLeasesSupported</errorDescription>
|
||||||
</UPnPError>
|
</UPnPError>
|
||||||
`) {
|
`) {
|
||||||
t.Fatalf("unexpected Detail.Raw, got:\n%s", string(soapErr.Detail.Raw))
|
t.Fatalf("unexpected Detail.Raw, got:\n%s", string(soapErr.Detail.Raw))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user