forked from TrueCloudLab/restic
index: Cancel context for tests
This commit is contained in:
parent
b096fc7abf
commit
944b446ac0
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue