summaryrefslogtreecommitdiffstats
path: root/test/main_test.go
diff options
context:
space:
mode:
authorClément Bénier <clement.benier@iot.bzh>2018-08-22 14:06:34 +0200
committerClément Bénier <clement.benier@iot.bzh>2018-08-24 17:33:01 +0200
commit7fb08b4791214b648175d19ce14fa297b4ea2e16 (patch)
tree496515e0ebfc9d59877734bebbf82d53f35be7d5 /test/main_test.go
parent7ec4cfb73ca8ead1c816e3c7845211ddfb548a12 (diff)
- fixtures for user ssh server (authorized_keys, ssh, sshd_config, ssh_host_rsa_key, ssh.pub) - exec following cmd $ /usr/bin/sshd - D -f sshd_config -h ssh_host_rsa_key -o AuthorizedKeysFile=authorized_keys -p port - uncomment former terminal tests for open/close Change-Id: If1765c4860ef3a95f7a92f1f9652427828b98083 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
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
})