Fix test build errors

This commit is contained in:
Ken Hibino
2020-08-18 06:46:19 -07:00
parent 2f226dfb84
commit 83bdca5220
2 changed files with 79 additions and 49 deletions

View File

@@ -447,9 +447,12 @@ func TestProcessorWithStrictPriority(t *testing.T) {
})
p.handler = HandlerFunc(handler)
t.Log("Starting Processor")
p.start(&sync.WaitGroup{})
time.Sleep(tc.wait)
t.Log("Terminating Processor")
p.terminate()
t.Log("Terminated Processor")
if diff := cmp.Diff(tc.wantProcessed, processed, cmp.AllowUnexported(Payload{})); diff != "" {
t.Errorf("mismatch found in processed tasks; (-want, +got)\n%s", diff)