Fix test case

This commit is contained in:
jybp 2023-05-10 14:05:19 +02:00 committed by Huin
parent dc178c5d44
commit c99b664f99

View File

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