Skip to content

Commit 2c3f357

Browse files
committed
testing/synctest: fix inverted failure message in TestContextAfterFunc
1 parent eb1c7f6 commit 2c3f357

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/testing/synctest/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func TestContextAfterFunc(t *testing.T) {
6666
cancel()
6767
synctest.Wait()
6868
if !afterFuncCalled {
69-
t.Fatalf("before context is canceled: AfterFunc not called")
69+
t.Fatalf("after context is canceled: AfterFunc not called")
7070
}
7171
})
7272
}

0 commit comments

Comments
 (0)