Skip to content

Commit

Permalink
tests/e2e: check compactOnRev > tombstoneRevs[0]
Browse files Browse the repository at this point in the history
Follow-up: #18369 (comment)

Signed-off-by: Wei Fu <[email protected]>
  • Loading branch information
fuweid committed Aug 1, 2024
1 parent 4488f2c commit 182639c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/e2e/hashkv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func TestVerifyHashKVAfterCompact(t *testing.T) {
// If compaction revision isn't a tombstone, select a revision in the middle of two tombstones.
if !compactedOnTombstoneRev {
compactedOnRev = (tombstoneRevs[0] + tombstoneRevs[1]) / 2
require.Greater(t, compactedOnRev, tombstoneRevs[0])
require.Greater(t, tombstoneRevs[1], compactedOnRev)
}

Expand Down

0 comments on commit 182639c

Please sign in to comment.