Skip to content

Commit

Permalink
Fix flaky TestHandleRefreshWithoutProxyServerStart test (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
makhov authored Dec 21, 2024
1 parent 74b714a commit 49100fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/proxy/refresh_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,14 @@ func TestHandleRefreshWithoutProxyServerStart(t *testing.T) {
httpTestCase := newRefreshHandlerHTTPTestCase(context.Background(), "/refresh")
httpTestCase.Teardown()

expectedReply := centrifuge.RefreshReply{
ExpireAt: time.Now().Unix() + 60,
}

cases := newRefreshHandlerTestCases(httpTestCase, grpcTestCase)
for _, c := range cases {
reply, err := c.invokeHandle()
require.NoError(t, err, c.protocol)

expectedReply := centrifuge.RefreshReply{
ExpireAt: time.Now().Unix() + 60,
}
require.Equal(t, expectedReply, reply, c.protocol)
}
}
Expand Down

0 comments on commit 49100fb

Please sign in to comment.