From 1dbf88b9a561b7efdd5b18d3b91a638bb09569b8 Mon Sep 17 00:00:00 2001 From: makhov Date: Mon, 9 Dec 2024 10:27:34 +0200 Subject: [PATCH] Fix flaky TestHandleRefreshWithoutProxyServerStart test --- internal/proxy/refresh_handler_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/proxy/refresh_handler_test.go b/internal/proxy/refresh_handler_test.go index 855974ddd9..149a9dc8cd 100644 --- a/internal/proxy/refresh_handler_test.go +++ b/internal/proxy/refresh_handler_test.go @@ -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) } }