Skip to content

Commit

Permalink
Merge pull request #6168 from heyitsanthony/fix-periodic-test-block
Browse files Browse the repository at this point in the history
compactor: wait for After() in TestPeriodic
  • Loading branch information
Anthony Romano authored Aug 12, 2016
2 parents f975fe8 + 5eff6fb commit 817de6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compactor/compactor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 817de6d

Please sign in to comment.