Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jaydip Gabani <[email protected]>
  • Loading branch information
JaydipGabani committed Oct 29, 2024
1 parent e0ed385 commit 9326dd1
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -679,16 +679,11 @@ func TestReconcile(t *testing.T) {
if vapBindingCreationTime.Before(blockTime) {
return fmt.Errorf("VAPBinding should be created after default wait")
}
err = retry.OnError(testutils.ConstantRetry, func(_ error) bool {
return true
}, func() error {
return c.Delete(ctx, vapBinding)
})
if err != nil {
logger.Error(err, "delete vapBinding")
t.Fatal(err)

if err := c.Delete(ctx, cstr); err != nil {
return err
}
return nil
return c.Delete(ctx, vapBinding)
})
if err != nil {
t.Fatal(err)
Expand Down Expand Up @@ -815,7 +810,7 @@ func TestReconcile(t *testing.T) {
}
vapBindingCreationTime := vapBinding.GetCreationTimestamp().Time
if vapBindingCreationTime.Before(blockTime) {
t.Fatal("VAPBinding should not be created before the timestamp")
return fmt.Errorf("VAPBinding should not be created before the timestamp")
}
return nil
})
Expand Down

0 comments on commit 9326dd1

Please sign in to comment.