mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
compactor: make TestPeriodic die early
This commit is contained in:
parent
123b25845c
commit
a915ff8419
@ -45,7 +45,10 @@ func TestPeriodic(t *testing.T) {
|
||||
// advance one hour, one revision for each interval
|
||||
for j := 0; j < n; j++ {
|
||||
fc.Advance(checkCompactionInterval)
|
||||
rg.Wait(1)
|
||||
_, err := rg.Wait(1)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
// ready to acknowledge hour "i"
|
||||
// block until compactor calls clock.After()
|
||||
|
Loading…
x
Reference in New Issue
Block a user