From: Keiichi Hirobe Date: Sun, 21 Feb 2021 03:22:13 +0000 (+0900) Subject: context: fix XTestInterlockedCancels X-Git-Tag: go1.17beta1~1409 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=42b9e3a8df;p=gostls13.git context: fix XTestInterlockedCancels The test does not use Done channel, so fix that. Change-Id: I795feab2e95de815b8b6ee7a7fd90f19f7af7db1 Reviewed-on: https://go-review.googlesource.com/c/go/+/294749 Reviewed-by: Sameer Ajmani Trust: Sameer Ajmani Trust: Cody Oss Run-TryBot: Sameer Ajmani TryBot-Result: Go Bot --- diff --git a/src/context/context_test.go b/src/context/context_test.go index 6b392a29da..84eef01da1 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()