mirror of
https://github.com/restic/restic.git
synced 2026-06-17 14:14:19 +00:00
repository: fix goroutine leak due to delayedCancelContext in tests
This commit is contained in:
@@ -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