diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2018-08-07 19:52:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-07 19:52:51 +0200 |
commit | c11ebddbfb6682deb4114478d3e2ff29f8641c06 (patch) | |
tree | 8422683d41e04e5e2afdea0a47d1a4176739a388 /app/web_hub_test.go | |
parent | 9bf01f1401ed47afc4fc443974e2bd4db50b2f50 (diff) | |
download | chat-c11ebddbfb6682deb4114478d3e2ff29f8641c06.tar.gz chat-c11ebddbfb6682deb4114478d3e2ff29f8641c06.tar.bz2 chat-c11ebddbfb6682deb4114478d3e2ff29f8641c06.zip |
try to fix the flaky test (#9231)
Diffstat (limited to 'app/web_hub_test.go')
-rw-r--r-- | app/web_hub_test.go | 10 |
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() } |