summaryrefslogtreecommitdiffstats
path: root/test/main_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/main_test.go')
-rw-r--r--test/main_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/main_test.go b/test/main_test.go
index 68206a9..4889991 100644
--- a/test/main_test.go
+++ b/test/main_test.go
@@ -180,7 +180,9 @@ func NewIoSocketClient(url, clientID string) (*IOSockClient, error) {
})
sCli.Conn.On("disconnection", func(err error) {
- log.Printf("WS disconnection event with err: %v\n", err)
+ if err != nil {
+ log.Printf("WS disconnection event with err: %v\n", err)
+ }
sCli.Connected = false
})