2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 10:58:55 +00:00

index: Cancel context for tests

This commit is contained in:
Alexander Neumann 2018-10-28 11:17:04 +01:00
parent b096fc7abf
commit 944b446ac0

View File

@ -252,6 +252,7 @@ func TestIndexSave(t *testing.T) {
} }
ctx, cancel := context.WithCancel(context.TODO()) ctx, cancel := context.WithCancel(context.TODO())
defer cancel()
errCh := make(chan error) errCh := make(chan error)
go checker.Structure(ctx, errCh) go checker.Structure(ctx, errCh)