diff --git a/query/physicalplan/sampler_test.go b/query/physicalplan/sampler_test.go index aab410e25..0a9116d1d 100644 --- a/query/physicalplan/sampler_test.go +++ b/query/physicalplan/sampler_test.go @@ -291,7 +291,7 @@ func Test_Sampler_MaxSizeAllocation(t *testing.T) { allocator: memory.NewCheckedAllocator(memory.NewGoAllocator()), } t.Cleanup(func() { - require.Equal(t, allocator.maxUsed, 1024) // Expect the most we allocated was 1024 bytes during materialization + require.LessOrEqual(t, allocator.maxUsed, 1024) // Expect the most we allocated was 1024 bytes during materialization allocator.allocator.AssertSize(t, 0) }) s := NewReservoirSampler(10, 200, allocator)