mirror of https://github.com/mum4k/termdash.git
Fixed an error in the test
This commit is contained in:
parent
a4152652fc
commit
02bb0d1312
|
@ -107,7 +107,7 @@ func TestPullBlocksUntilAvailable(t *testing.T) {
|
|||
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Millisecond)
|
||||
defer cancel()
|
||||
|
||||
if _, err := q.Pull(ctx); err != nil {
|
||||
if _, err := q.Pull(ctx); err == nil {
|
||||
t.Fatal("Pull => expected timeout error, got nil")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue