mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-27 16:17:34 +00:00
fix unstable integration test
Signed-off-by: roywang <seiwy2010@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user