summaryrefslogtreecommitdiffstats
path: root/app/web_hub_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/web_hub_test.go')
-rw-r--r--app/web_hub_test.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/web_hub_test.go b/app/web_hub_test.go
index 62c2552de..8702acb21 100644
--- a/app/web_hub_test.go
+++ b/app/web_hub_test.go
@@ -53,8 +53,10 @@ func TestHubStopWithMultipleConnections(t *testing.T) {
defer s.Close()
th.App.HubStart()
- registerDummyWebConn(t, th.App, s.Listener.Addr(), th.BasicUser.Id)
- registerDummyWebConn(t, th.App, s.Listener.Addr(), th.BasicUser.Id)
- registerDummyWebConn(t, th.App, s.Listener.Addr(), th.BasicUser.Id)
- th.App.HubStop()
+ wc1 := registerDummyWebConn(t, th.App, s.Listener.Addr(), th.BasicUser.Id)
+ wc2 := registerDummyWebConn(t, th.App, s.Listener.Addr(), th.BasicUser.Id)
+ wc3 := registerDummyWebConn(t, th.App, s.Listener.Addr(), th.BasicUser.Id)
+ defer wc1.Close()
+ defer wc2.Close()
+ defer wc3.Close()
}