From: Kevin Burke Date: Wed, 24 Feb 2021 17:12:34 +0000 (-0800) Subject: context: avoid importing context package twice X-Git-Tag: go1.17beta1~1389 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c9d9b40b13;p=gostls13.git context: avoid importing context package twice Change-Id: Id0a127e080dda8ee62738922c6de8caf3719dd68 Reviewed-on: https://go-review.googlesource.com/c/go/+/295949 Reviewed-by: Josh Bleecher Snyder Trust: Josh Bleecher Snyder Trust: Kevin Burke Run-TryBot: Josh Bleecher Snyder TryBot-Result: Go Bot --- diff --git a/src/context/benchmark_test.go b/src/context/benchmark_test.go index c4c72f00f8..69d75fff18 100644 --- a/src/context/benchmark_test.go +++ b/src/context/benchmark_test.go @@ -5,7 +5,6 @@ package context_test import ( - "context" . "context" "fmt" "runtime" @@ -141,7 +140,7 @@ func BenchmarkCheckCanceled(b *testing.B) { } func BenchmarkContextCancelDone(b *testing.B) { - ctx, cancel := context.WithCancel(context.Background()) + ctx, cancel := WithCancel(Background()) defer cancel() b.RunParallel(func(pb *testing.PB) {