try to fix the flaky test (#9231)

This commit is contained in:
Carlos Tadeu Panato Junior
2018-08-07 19:52:51 +02:00
committed by GitHub
parent 9bf01f1401
commit c11ebddbfb

View File

@@ -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()
}