Skip to content

Commit

Permalink
Got cleanup working.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles-Garnsey committed May 10, 2024
1 parent d17f24d commit fc0abc7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/envtest/multi_envtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ func RunMultiKind(m *testing.M, setupFunc func(e *MultiK8sEnvironment), numClust
wg.Wait()
defer func() {
for i := 0; i < numClusters; i++ {
go func(i int) {
e[i].Stop()
e[i].KindCluster.TearDownKindCluster()
}(i)
if err := e[i].KindCluster.TearDownKindCluster(); err != nil {
panic(err)
}
e[i].Stop()
}
}()

Expand Down

0 comments on commit fc0abc7

Please sign in to comment.