2
0

Remove unnecassary ctx cancel

Signed-off-by: Artemiy Ryabinkov <getlag@ya.ru>
This commit is contained in:
Artemiy Ryabinkov
2019-06-22 20:09:55 +03:00
parent 54ce9c6bb8
commit 07904bd774
@@ -87,9 +87,6 @@ func TestContextWatcherStress(t *testing.T) {
if i%2 == 1 {
cancel()
}
// To avoid context leak
cancel()
}
actualCancelFuncCalls := atomic.LoadInt64(&cancelFuncCalls)