mirror of
https://github.com/restic/restic.git
synced 2026-10-31 12:35:42 +00:00
repository: fix goroutine leak due to delayedCancelContext in tests
This commit is contained in:
1 parent
b86568b790
commit
151903d4d4
1 file changed
+1
-1
@@ -293,7 +293,7 @@ func delayedCancelContext(parentCtx context.Context, delay time.Duration) (conte
|
||||
return
|
||||
}
|
||||
|
||||
time.Sleep(delay)
|
||||
_ = cancelableDelay(ctx, delay)
|
||||
cancel()
|
||||
}()
|
||||
|
||||
|
||||
Reference in new issue
Block a user