Fix client tests
This commit is contained in:
parent
348f29e055
commit
715bf6976f
|
@ -27,7 +27,8 @@ func TestClient_Connect(t *testing.T) {
|
||||||
|
|
||||||
var client *Client
|
var client *Client
|
||||||
var err error
|
var err error
|
||||||
if client, err = NewClient(config); err != nil {
|
router := NewRouter()
|
||||||
|
if client, err = NewClient(config, router); err != nil {
|
||||||
t.Errorf("connect create XMPP client: %s", err)
|
t.Errorf("connect create XMPP client: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +49,8 @@ func TestClient_NoInsecure(t *testing.T) {
|
||||||
|
|
||||||
var client *Client
|
var client *Client
|
||||||
var err error
|
var err error
|
||||||
if client, err = NewClient(config); err != nil {
|
router := NewRouter()
|
||||||
|
if client, err = NewClient(config, router); err != nil {
|
||||||
t.Errorf("cannot create XMPP client: %s", err)
|
t.Errorf("cannot create XMPP client: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,7 +73,8 @@ func TestClient_FeaturesTracking(t *testing.T) {
|
||||||
|
|
||||||
var client *Client
|
var client *Client
|
||||||
var err error
|
var err error
|
||||||
if client, err = NewClient(config); err != nil {
|
router := NewRouter()
|
||||||
|
if client, err = NewClient(config, router); err != nil {
|
||||||
t.Errorf("cannot create XMPP client: %s", err)
|
t.Errorf("cannot create XMPP client: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue