mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #18387 from fuweid/case-update
tests/e2e: check compactOnRev > tombstoneRevs[0]
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user