diff --git a/pkg/kv/bulk/kv_buf_test.go b/pkg/kv/bulk/kv_buf_test.go index 2ba1dae27ed7..06ac4d486a16 100644 --- a/pkg/kv/bulk/kv_buf_test.go +++ b/pkg/kv/bulk/kv_buf_test.go @@ -63,7 +63,7 @@ func TestKvBuf(t *testing.T) { b := kvBuf{} for i := range src { size := sz(len(src[i].key) + len(src[i].value)) - fits := len(b.entries) < cap(b.entries) && len(b.slab)+int(size) < cap(b.slab) + fits := len(b.entries) <= cap(b.entries) && len(b.slab)+int(size) <= cap(b.slab) require.Equal(t, fits, b.fits(ctx, size, 0, &none)) if !fits {