mirror of
https://github.com/restic/restic.git
synced 2025-08-12 17:37:40 +00:00
index: Cancel context for tests
This commit is contained in:
@@ -252,6 +252,7 @@ func TestIndexSave(t *testing.T) {
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(context.TODO())
|
||||
defer cancel()
|
||||
|
||||
errCh := make(chan error)
|
||||
go checker.Structure(ctx, errCh)
|
||||
|
Reference in New Issue
Block a user