diff options
Diffstat (limited to 'src/testing')
| -rw-r--r-- | src/testing/synctest/example_test.go | 2 | ||||
| -rw-r--r-- | src/testing/synctest/synctest.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/synctest/example_test.go b/src/testing/synctest/example_test.go index 843377ea88..a86d87fcec 100644 --- a/src/testing/synctest/example_test.go +++ b/src/testing/synctest/example_test.go @@ -66,7 +66,7 @@ func TestContextAfterFunc(t *testing.T) { cancel() synctest.Wait() if !afterFuncCalled { - t.Fatalf("before context is canceled: AfterFunc not called") + t.Fatalf("after context is canceled: AfterFunc not called") } }) } diff --git a/src/testing/synctest/synctest.go b/src/testing/synctest/synctest.go index 707383f9c7..9f499515b8 100644 --- a/src/testing/synctest/synctest.go +++ b/src/testing/synctest/synctest.go @@ -147,7 +147,7 @@ // cancel() // synctest.Wait() // if !afterFuncCalled { -// t.Fatalf("before context is canceled: AfterFunc not called") +// t.Fatalf("after context is canceled: AfterFunc not called") // } // }) // } |
