From 91c481c77ab066a6fff71484e8ac4af2fc4b8236 Mon Sep 17 00:00:00 2001 From: Geoffrey Wossum Date: Wed, 11 Mar 2026 14:20:03 -0500 Subject: [PATCH] chore: add test assertion missing from #26691 Add test assertion missing from #26691 when it was ported to OSS master-1.x. --- tsdb/engine/tsm1/array_cursor_optimization_bug_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tsdb/engine/tsm1/array_cursor_optimization_bug_test.go b/tsdb/engine/tsm1/array_cursor_optimization_bug_test.go index e33ced19d84..6e7b54d817e 100644 --- a/tsdb/engine/tsm1/array_cursor_optimization_bug_test.go +++ b/tsdb/engine/tsm1/array_cursor_optimization_bug_test.go @@ -155,6 +155,8 @@ func TestAscendingCursorDuplicateDataBug(t *testing.T) { // Verify no duplicates were found assert.Equalf(len(seenTimestamps), len(allTimestamps), "Found duplicate timestamps! Total: %d, Unique: %d", len(allTimestamps), len(seenTimestamps)) + // Confirm equal length of values and timestamps + assert.Equal(len(allValues), len(allTimestamps), "quantity of timestamps and values count mismatch: %d timestamps, %d values", len(allTimestamps), len(allValues)) // Verify we got all expected data (cache + TSM) assert.Equalf(len(cacheValues)+len(tsmData[0].values), len(allTimestamps), "total timestamps")