Skip to content

Commit 49100fb

Browse files
authored
Fix flaky TestHandleRefreshWithoutProxyServerStart test (#920)
1 parent 74b714a commit 49100fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/proxy/refresh_handler_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,14 @@ func TestHandleRefreshWithoutProxyServerStart(t *testing.T) {
187187
httpTestCase := newRefreshHandlerHTTPTestCase(context.Background(), "/refresh")
188188
httpTestCase.Teardown()
189189

190-
expectedReply := centrifuge.RefreshReply{
191-
ExpireAt: time.Now().Unix() + 60,
192-
}
193-
194190
cases := newRefreshHandlerTestCases(httpTestCase, grpcTestCase)
195191
for _, c := range cases {
196192
reply, err := c.invokeHandle()
197193
require.NoError(t, err, c.protocol)
194+
195+
expectedReply := centrifuge.RefreshReply{
196+
ExpireAt: time.Now().Unix() + 60,
197+
}
198198
require.Equal(t, expectedReply, reply, c.protocol)
199199
}
200200
}

0 commit comments

Comments
 (0)