summaryrefslogtreecommitdiffstats
path: root/app/web_hub_test.go
diff options
context:
space:
mode:
authorcpanato <ctadeu@gmail.com>2018-08-08 13:53:10 +0200
committercpanato <ctadeu@gmail.com>2018-08-08 13:53:10 +0200
commitae891321ad2e4b07e4f77b252379cb998607c687 (patch)
treede7cfa9b9fb1c0d7da2164e42e8516f62c7aaff1 /app/web_hub_test.go
parent99cf15b56eb561dc30def86ad7e3cd97af4c338c (diff)
parent5fbec91c35d7ea5d9b920b26a01fc21da55bb08e (diff)
downloadchat-ae891321ad2e4b07e4f77b252379cb998607c687.tar.gz
chat-ae891321ad2e4b07e4f77b252379cb998607c687.tar.bz2
chat-ae891321ad2e4b07e4f77b252379cb998607c687.zip
Merge remote-tracking branch 'upstream/release-5.2' into release-5.2-daily-merge-20180808
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()
}