From 42b9e3a8dfb31f18829c45f0995cbf3c78fc90fb Mon Sep 17 00:00:00 2001 From: Keiichi Hirobe Date: Sun, 21 Feb 2021 12:22:13 +0900 Subject: [PATCH] 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 --- src/context/context_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()