From fec3c297fc5ccb3cfcdbcd63892e5885b99a1bbc Mon Sep 17 00:00:00 2001 From: Salva Corts Date: Mon, 30 Oct 2023 14:33:28 +0100 Subject: [PATCH] Fix test --- pkg/ingester/tailer_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/ingester/tailer_test.go b/pkg/ingester/tailer_test.go index 6e8f0309c2da5..59293352030df 100644 --- a/pkg/ingester/tailer_test.go +++ b/pkg/ingester/tailer_test.go @@ -268,11 +268,7 @@ func Test_StructuredMetadata(t *testing.T) { }, 30*time.Second, 1*time.Second, "stream was not received") responses := server.GetResponses() - require.Equal(t, len(responses), len(tc.expectedResponses)) - for i := range responses { - require.Equal(t, tc.expectedResponses[i].Stream, responses[i].Stream) - require.Equal(t, tc.expectedResponses[i].DroppedStreams, responses[i].DroppedStreams) - } + require.ElementsMatch(t, tc.expectedResponses, responses) tail.close() wg.Wait()