From 07904bd774d7009cd55030606fe5d30e1329c6c0 Mon Sep 17 00:00:00 2001 From: Artemiy Ryabinkov Date: Sat, 22 Jun 2019 20:09:55 +0300 Subject: [PATCH] Remove unnecassary ctx cancel Signed-off-by: Artemiy Ryabinkov --- internal/ctxwatch/context_watcher_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/ctxwatch/context_watcher_test.go b/internal/ctxwatch/context_watcher_test.go index a1b3c863..0b491bf8 100644 --- a/internal/ctxwatch/context_watcher_test.go +++ b/internal/ctxwatch/context_watcher_test.go @@ -87,9 +87,6 @@ func TestContextWatcherStress(t *testing.T) { if i%2 == 1 { cancel() } - - // To avoid context leak - cancel() } actualCancelFuncCalls := atomic.LoadInt64(&cancelFuncCalls)