Skip to content

Commit 86a4fbe

Browse files
committed
fix: network test delete namespace increased timeout
1 parent 6978187 commit 86a4fbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/liqoctl/test/network/setup/namespace.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ func RemoveNamespace(ctx context.Context, cl *client.Client) error {
7474
if err := cl.Consumer.Delete(ctx, ns); err != nil {
7575
return err
7676
}
77-
timeout, cancel := context.WithTimeout(ctx, 1*time.Minute)
77+
timeout, cancel := context.WithTimeout(ctx, 2*time.Minute)
7878
defer cancel()
79-
if err := wait.PollUntilContextCancel(timeout, 1*time.Second, true, func(ctx context.Context) (done bool, err error) {
79+
if err := wait.PollUntilContextCancel(timeout, 10*time.Second, true, func(ctx context.Context) (done bool, err error) {
8080
if err := cl.Consumer.Get(ctx, ctrlclient.ObjectKeyFromObject(ns), ns); err != nil {
8181
return ctrlclient.IgnoreNotFound(err) == nil, nil
8282
}

0 commit comments

Comments
 (0)