aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bénier <clement.benier@iot.bzh>2018-08-14 16:46:06 +0200
committerClément Bénier <clement.benier@iot.bzh>2018-08-21 11:08:36 +0200
commitec12c77af9b30e7ae29c28863dccf7968ab35fb6 (patch)
treec0002e06e0ff38889101c649be328177894dcbf9
parent330d6849a51ea6b47d90e9cd6f6ee43a7c2fb10e (diff)
test sdks: close channels
Change-Id: Ibab87254b1ef39ff8bb6166a5ff160233b6533e0 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
-rw-r--r--test/sdks_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/sdks_test.go b/test/sdks_test.go
index 9c3fc7e..3232fa4 100644
--- a/test/sdks_test.go
+++ b/test/sdks_test.go
@@ -46,6 +46,7 @@ func TestSdks(t *testing.T) {
t.Logf("Connect websocket with url=%v clientId=%v\n", prefixURL, HTTPCli.GetClientID())
chSdks := make(chan xsapiv1.SDK)
+ defer close(chSdks)
ConnectSDKStateChange(t, sCli, chSdks)
for i := 0; i < len(sdkArray); i++ {
@@ -90,6 +91,7 @@ func TestInstallFakeSdk(t *testing.T) {
}
chSdks := make(chan xsapiv1.SDK)
+ defer close(chSdks)
ConnectSDKStateChange(t, sCli, chSdks)
installFakeSdk(t, sdk, chSdks)
var sdkRes xsapiv1.SDK