Clean shutdown of apply integration tests

This commit is contained in:
Wojciech Tyczyński
2022-11-05 20:09:43 +01:00
parent c519bc02e8
commit 71d87272de
4 changed files with 11 additions and 2 deletions

View File

@@ -899,7 +899,7 @@ func timeout(ctx context.Context, d time.Duration, f func()) error {
done := make(chan struct{})
go func() {
f()
done <- struct{}{}
close(done)
}()
select {