Remove unnecassary ctx cancel
Signed-off-by: Artemiy Ryabinkov <getlag@ya.ru>
This commit is contained in:
@@ -87,9 +87,6 @@ func TestContextWatcherStress(t *testing.T) {
|
|||||||
if i%2 == 1 {
|
if i%2 == 1 {
|
||||||
cancel()
|
cancel()
|
||||||
}
|
}
|
||||||
|
|
||||||
// To avoid context leak
|
|
||||||
cancel()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
actualCancelFuncCalls := atomic.LoadInt64(&cancelFuncCalls)
|
actualCancelFuncCalls := atomic.LoadInt64(&cancelFuncCalls)
|
||||||
|
|||||||
Reference in New Issue
Block a user