From ec12c77af9b30e7ae29c28863dccf7968ab35fb6 Mon Sep 17 00:00:00 2001 From: Clément Bénier Date: Tue, 14 Aug 2018 16:46:06 +0200 Subject: test sdks: close channels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ibab87254b1ef39ff8bb6166a5ff160233b6533e0 Signed-off-by: Clément Bénier --- test/sdks_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') 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 -- cgit 1.2.3-korg