mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-28 13:22:02 -08:00
fix: bad tests
This commit is contained in:
parent
e567905024
commit
c1309102bc
@ -131,7 +131,7 @@ func respondToIQ(t *testing.T, sc *ServerConn) {
|
|||||||
// Decoder to parse the request
|
// Decoder to parse the request
|
||||||
iqReq, err := receiveIq(sc)
|
iqReq, err := receiveIq(sc)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("failed to receive IQ : %w", err.Error())
|
t.Fatalf("failed to receive IQ : %s", err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
if vld, _ := iqReq.IsValid(); !vld {
|
if vld, _ := iqReq.IsValid(); !vld {
|
||||||
@ -183,7 +183,7 @@ func discardPresence(t *testing.T, sc *ServerConn) {
|
|||||||
err = xml.Unmarshal(recvBuf, &presenceStz)
|
err = xml.Unmarshal(recvBuf, &presenceStz)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("Expected presence but this happened : %w", err.Error())
|
t.Errorf("Expected presence but this happened : %w", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user