We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 383f620 commit b32db76Copy full SHA for b32db76
driver/driver_test.go
@@ -249,8 +249,9 @@ func Test_nested_context(t *testing.T) {
249
cancel()
250
251
var terr interface{ Temporary() bool }
252
- if inner.Next() || !errors.As(inner.Err(), &terr) || !terr.Temporary() {
253
- t.Fatalf("got %v, want temporary", inner.Err())
+ if inner.Next() || !errors.Is(inner.Err(), context.Canceled) &&
+ (!errors.As(inner.Err(), &terr) || !terr.Temporary()) {
254
+ t.Fatalf("got %v, want cancellation", inner.Err())
255
}
256
257
want(outer, 1)
0 commit comments