Skip to content

Commit

Permalink
one more linter fix to later probably revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Stucki committed Jun 7, 2023
1 parent fdeccab commit 030c563
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion acceptance/tests/config-entries/config_entries_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,15 @@ func TestController(t *testing.T) {

// Test creation.
{
runner := func() (string, error) {
return k8s.RunKubectlAndGetOutputE(t, ctx.KubectlOptions(t), "apply", "-k", "../fixtures/bases/crds-oss")
}
logger.Log(t, "creating custom resources")
retry.Run(t, func(r *retry.R) {
// Retry the kubectl apply because we've seen sporadic
// "connection refused" errors where the mutating webhook
// endpoint fails initially.
out, err := k8s.RunKubectlAndGetOutputE(t, ctx.KubectlOptions(t), "apply", "-k", "../fixtures/bases/crds-oss")
out, err := runner()
require.NoError(r, err, out)
})
helpers.Cleanup(t, cfg.NoCleanupOnFailure, func() {
Expand Down

0 comments on commit 030c563

Please sign in to comment.