Skip to content

Commit b0f7495

Browse files
committed
no point putting timeouts in variables
Signed-off-by: Geoff Flarity <[email protected]>
1 parent eb8bff2 commit b0f7495

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

operator/e2e/setup/shared_cluster.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,7 @@ func (scm *SharedClusterManager) CleanupWorkloads(ctx context.Context) error {
201201
}
202202

203203
// Step 2: Poll for all resources and pods to be cleaned up, wait for 30 seconds or until all resources and pods are deleted
204-
timeout := 30 * time.Second
205-
interval := 1 * time.Second
206-
if err := scm.waitForAllResourcesAndPodsDeleted(ctx, timeout, interval); err != nil {
204+
if err := scm.waitForAllResourcesAndPodsDeleted(ctx, 30*time.Second, 1*time.Second); err != nil {
207205
// List remaining resources and pods for debugging
208206
scm.listRemainingResources(ctx)
209207
scm.listRemainingPods(ctx, "default")

0 commit comments

Comments
 (0)