diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/sdks_test.go | 2 |
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 |