Fixing test

This commit is contained in:
Laszlo Fogas 2019-06-14 09:03:59 +02:00
parent 001d645471
commit 3f50cafe94

View file

@ -138,6 +138,8 @@ func TestFifoDependencies(t *testing.T) {
return return
} }
q.Done(noContext, got.ID)
got, _ = q.Poll(noContext, func(*Task) bool { return true }) got, _ = q.Poll(noContext, func(*Task) bool { return true })
if got != task2 { if got != task2 {
t.Errorf("expect task2 returned from queue") t.Errorf("expect task2 returned from queue")