Skip to content

Commit

Permalink
Fix race condition in test
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael committed May 18, 2024
1 parent 291077d commit d021963
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion grpc/middleware/canceler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ func TestStreamCanceler(t *testing.T) {
}()

if err := grpcm.StreamCanceler(ctx)(nil, c.stream, stream, c.handler); err != nil {
t.Errorf("StreamCanceler error: %v", err)
if err.Error() != "server is stopping" {
t.Errorf("StreamCanceler error: %v", err)
}
}
})
}
Expand Down

0 comments on commit d021963

Please sign in to comment.