Skip to content

Commit

Permalink
give it a bit of time before checking errSink
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Mar 22, 2022
1 parent e01a744 commit 9533560
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion httprc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ func TestCache(t *testing.T) {

_, _ = c.Get(ctx, srv.URL)
time.Sleep(3 * time.Second)
cancel()

time.Sleep(time.Second)
if !assert.True(t, len(errSink.errors) > 0) {
return
}
cancel()
}

0 comments on commit 9533560

Please sign in to comment.