forked from jshiffer/go-xmpp
Refactor ClientManager into a more generic StreamManager
This commit is contained in:
committed by
Mickaël Rémond
parent
54dfa60f12
commit
021f6d3740
+2
-2
@@ -31,7 +31,7 @@ func TestClient_Connect(t *testing.T) {
|
||||
t.Errorf("connect create XMPP client: %s", err)
|
||||
}
|
||||
|
||||
if _, err = client.Connect(); err != nil {
|
||||
if err = client.Connect(); err != nil {
|
||||
t.Errorf("XMPP connection failed: %s", err)
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ func TestClient_NoInsecure(t *testing.T) {
|
||||
t.Errorf("cannot create XMPP client: %s", err)
|
||||
}
|
||||
|
||||
if _, err = client.Connect(); err == nil {
|
||||
if err = client.Connect(); err == nil {
|
||||
// When insecure is not allowed:
|
||||
t.Errorf("should fail as insecure connection is not allowed and server does not support TLS")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user