diff --git a/src/context/context_test.go b/src/context/context_test.go index 6b392a29da5..84eef01da1f 100644 --- a/src/context/context_test.go +++ b/src/context/context_test.go @@ -525,7 +525,7 @@ func XTestInterlockedCancels(t testingT) { parent, cancelParent := WithCancel(Background()) child, cancelChild := WithCancel(parent) go func() { - parent.Done() + <-parent.Done() cancelChild() }() cancelParent()