mirror of
https://github.com/mum4k/termdash.git
synced 2025-04-25 13:48:50 +08:00
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)
|
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Millisecond)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
if _, err := q.Pull(ctx); err != nil {
|
if _, err := q.Pull(ctx); err == nil {
|
||||||
t.Fatal("Pull => expected timeout error, got nil")
|
t.Fatal("Pull => expected timeout error, got nil")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user