Skip to content

Commit

Permalink
set a grace period of zero when cleaning up between tests (#1483)
Browse files Browse the repository at this point in the history
This should reduce some test flakiness.
  • Loading branch information
tzneal authored Mar 8, 2022
1 parent dea0157 commit 512b7e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/test/expectations/expectations.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ func ExpectCleanedUp(ctx context.Context, c client.Client) {
for _, namespace := range namespaces.Items {
wg.Add(1)
go func(object client.Object, namespace string) {
Expect(c.DeleteAllOf(ctx, object, client.InNamespace(namespace))).ToNot(HaveOccurred())
Expect(c.DeleteAllOf(ctx, object, client.InNamespace(namespace),
&client.DeleteAllOfOptions{DeleteOptions: client.DeleteOptions{GracePeriodSeconds: ptr.Int64(0)}})).ToNot(HaveOccurred())
wg.Done()
}(object, namespace.Name)
}
Expand Down

0 comments on commit 512b7e7

Please sign in to comment.