X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=test%2Fmain_test.go;fp=test%2Fmain_test.go;h=488999177921ee86bb5a37546b85d2879c69a623;hb=7fb08b4791214b648175d19ce14fa297b4ea2e16;hp=68206a923724d0af4275d3dbabb48dddb3f239fe;hpb=7ec4cfb73ca8ead1c816e3c7845211ddfb548a12;p=src%2Fxds%2Fxds-server.git 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 })