From c9d9b40b1355a8e6674aaaf6abaf362e66abae47 Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Wed, 24 Feb 2021 09:12:34 -0800 Subject: [PATCH] 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 --- src/context/benchmark_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) { -- 2.50.0