diff options
author | Clément Bénier <clement.benier@iot.bzh> | 2018-08-22 14:06:34 +0200 |
---|---|---|
committer | Clément Bénier <clement.benier@iot.bzh> | 2018-08-24 17:33:01 +0200 |
commit | 7fb08b4791214b648175d19ce14fa297b4ea2e16 (patch) | |
tree | 496515e0ebfc9d59877734bebbf82d53f35be7d5 /test/main_test.go | |
parent | 7ec4cfb73ca8ead1c816e3c7845211ddfb548a12 (diff) |
test target: launch user sshd for opening termflounder_5.99.6flounder_5.99.5flounder/5.99.6flounder/5.99.55.99.65.99.5
- 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.go | 4 |
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 }) |