mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #17396 from ivanvc/3.5-use-wait-leader-in-corrupt-test
[3.5] tests/e2e: use WaitLeader in corrupt test
This commit is contained in:
commit
ae7d49333a
@ -320,8 +320,10 @@ func TestCompactHashCheckDetectCorruptionInterrupt(t *testing.T) {
|
||||
_, err = epc.Procs[slowCompactionNodeIndex].Logs().Expect("finished scheduled compaction")
|
||||
require.NoError(t, err, "can't get log indicating finished scheduled compaction")
|
||||
|
||||
// Wait for compaction hash check
|
||||
time.Sleep(checkTime * 5)
|
||||
// Wait until the leader finished compaction hash check.
|
||||
leaderIndex := epc.WaitLeader(t)
|
||||
_, err = epc.Procs[leaderIndex].Logs().Expect("finished compaction hash check")
|
||||
require.NoError(t, err, "can't get log indicating finished compaction hash check")
|
||||
|
||||
alarmResponse, err := cc.AlarmList()
|
||||
require.NoError(t, err, "error on alarm list")
|
||||
|
Loading…
x
Reference in New Issue
Block a user