Merge pull request #18387 from fuweid/case-update

tests/e2e: check compactOnRev > tombstoneRevs[0]
This commit is contained in:
Benjamin Wang
2024-08-01 12:20:22 +01:00
committed by GitHub

View File

@@ -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)
}