Rename Options to Config

This commit is contained in:
Mickael Remond
2018-09-26 16:25:04 +02:00
parent 1c3aaad174
commit fa5590e921
6 changed files with 29 additions and 29 deletions

View File

@@ -23,11 +23,11 @@ func TestClient_Connect(t *testing.T) {
mock.Start(t, testXMPPAddress, handlerConnectSuccess)
// Test / Check result
options := Options{Address: testXMPPAddress, Jid: "test@localhost", Password: "test", Insecure: true}
config := Config{Address: testXMPPAddress, Jid: "test@localhost", Password: "test", Insecure: true}
var client *Client
var err error
if client, err = NewClient(options); err != nil {
if client, err = NewClient(config); err != nil {
t.Errorf("connect create XMPP client: %s", err)
}
@@ -44,11 +44,11 @@ func TestClient_NoInsecure(t *testing.T) {
mock.Start(t, testXMPPAddress, handlerAbortTLS)
// Test / Check result
options := Options{Address: testXMPPAddress, Jid: "test@localhost", Password: "test"}
config := Config{Address: testXMPPAddress, Jid: "test@localhost", Password: "test"}
var client *Client
var err error
if client, err = NewClient(options); err != nil {
if client, err = NewClient(config); err != nil {
t.Errorf("cannot create XMPP client: %s", err)
}