Fix unnecessary type conversions (#12927)

Этот коммит содержится в:
Ben Schumacher
2019-10-28 10:57:21 +01:00
коммит произвёл GitHub
родитель 3701a393e5
Коммит 8a72ed2833
11 изменённых файлов: 65 добавлений и 66 удалений

Просмотреть файл

@@ -50,7 +50,7 @@ func TestHubStopWithMultipleConnections(t *testing.T) {
th := Setup(t).InitBasic()
defer th.TearDown()
s := httptest.NewServer(http.HandlerFunc(dummyWebsocketHandler(t)))
s := httptest.NewServer(dummyWebsocketHandler(t))
defer s.Close()
th.App.HubStart()
@@ -68,7 +68,7 @@ func TestHubStopRaceCondition(t *testing.T) {
th := Setup(t).InitBasic()
defer th.TearDown()
s := httptest.NewServer(http.HandlerFunc(dummyWebsocketHandler(t)))
s := httptest.NewServer(dummyWebsocketHandler(t))
th.App.HubStart()
wc1 := registerDummyWebConn(t, th.App, s.Listener.Addr(), th.BasicUser.Id)