Skip to content

Commit

Permalink
context: fix for new context tests
Browse files Browse the repository at this point in the history
  • Loading branch information
knusbaum committed Mar 18, 2020
1 parent f051f22 commit 41768f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/context/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -672,11 +672,11 @@ func XTestInvalidDerivedFail(t testingT) {
if panicVal == nil {
t.Error("expected panic")
}
panicVal := recoveredValue(func() { WithDeadline(nil, time.Second) })
panicVal = recoveredValue(func() { WithDeadline(nil, time.Now().Add(shortDuration)) })
if panicVal == nil {
t.Error("expected panic")
}
panicVal := recoveredValue(func() { WithValue(nil, "foo", "bar") })
panicVal = recoveredValue(func() { WithValue(nil, "foo", "bar") })
if panicVal == nil {
t.Error("expected panic")
}
Expand Down

0 comments on commit 41768f1

Please sign in to comment.