mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #6168 from heyitsanthony/fix-periodic-test-block
compactor: wait for After() in TestPeriodic
This commit is contained in:
commit
817de6d212
@ -47,7 +47,10 @@ func TestPeriodic(t *testing.T) {
|
||||
fc.Advance(checkCompactionInterval)
|
||||
rg.Wait(1)
|
||||
}
|
||||
// ready to acknowledge hour "i"; unblock clock
|
||||
// ready to acknowledge hour "i"
|
||||
// block until compactor calls clock.After()
|
||||
fc.BlockUntil(1)
|
||||
// unblock the After()
|
||||
fc.Advance(checkCompactionInterval)
|
||||
a, err := compactable.Wait(1)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user