Fixed an error in the test

This commit is contained in:
Michael Teuscher 2019-01-23 08:45:08 +01:00
parent a4152652fc
commit 02bb0d1312
No known key found for this signature in database
GPG Key ID: 3F38EF5228BAF9AF
1 changed files with 1 additions and 1 deletions

View File

@ -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")
}