Skip to content

Commit

Permalink
chore: updates for code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneutt committed Mar 24, 2021
1 parent 39a8d44 commit b5fac77
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions railgun/test/integration/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ func deployControllers(ctx context.Context, ready chan ktfkind.ProxyReadinessEve
if err != nil {
panic(err)
}
defer func() {
kubeconfig.Close()
os.Remove(kubeconfig.Name())
}()
defer os.Remove(kubeconfig.Name())

// dump the kubeconfig from kind into the tempfile
generateKubeconfig := exec.CommandContext(ctx, "kind", "get", "kubeconfig", "--name", cluster.Name())
Expand All @@ -99,6 +96,7 @@ func deployControllers(ctx context.Context, ready chan ktfkind.ProxyReadinessEve
if err := generateKubeconfig.Run(); err != nil {
panic(err)
}
kubeconfig.Close()

// if set, allow running the legacy controller for the tests instead of the current controller
var cmd *exec.Cmd
Expand Down

0 comments on commit b5fac77

Please sign in to comment.