diff --git a/test/integration/appconfig_test.go b/test/integration/appconfig_test.go index d7f9c99f0..3b21ebb7e 100644 --- a/test/integration/appconfig_test.go +++ b/test/integration/appconfig_test.go @@ -159,7 +159,13 @@ func TestAppConfigController(t *testing.T) { }, })) - if err := c.Create(context.Background(), ac); err != nil { + if err := waitFor(context.Background(), 3*time.Second, func() (bool, error) { + // re-try because validating-webhook may fail for workloadDefinition is not found + if err := c.Create(context.Background(), ac); err != nil { + return false, err + } + return true, nil + }); err != nil { return err }