From 676f7665fa9cd0030ea8fd40a97a9f84a024ad7d Mon Sep 17 00:00:00 2001 From: Patryk Prus
Date: Fri, 8 Aug 2025 14:52:03 -0400 Subject: [PATCH] Use testutil.RequireEqual to handle dedupelabels in test Signed-off-by: Patryk Prus
--- tsdb/head_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tsdb/head_test.go b/tsdb/head_test.go index 56808b9807..c050190330 100644 --- a/tsdb/head_test.go +++ b/tsdb/head_test.go @@ -1130,7 +1130,9 @@ func TestHead_WALCheckpointMultiRef(t *testing.T) { cprecs := readTestWAL(t, checkpointDir) recs := readTestWAL(t, w.Dir()) recs = append(cprecs, recs...) - require.Equal(t, tc.expectedWalEntries, recs) + + // Use testutil.RequireEqual which handles labels properly with dedupelabels + testutil.RequireEqual(t, tc.expectedWalEntries, recs) }) } }