Skip to content

Commit

Permalink
OCPBUGS-12913: Deflake TestRouterCompressionOperation
Browse files Browse the repository at this point in the history
Wait for old router pods to be cleaned up before proceeding with testing
compression.

- `test/e2e/router_compression_test.go`: Use
waitForDeploymentCompleteWithOldPodTermination
  • Loading branch information
gcs278 authored and openshift-cherrypick-robot committed Jul 20, 2023
1 parent 37c11f6 commit 7279960
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/e2e/router_compression_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ func TestRouterCompressionOperation(t *testing.T) {
}()

// Wait until the new compressionPolicy is active in the router deployment
deployment, err := getDeployment(t, kclient, controller.RouterDeploymentName(ic), 2*time.Minute)
if err := waitForDeploymentComplete(t, kclient, deployment, 3*time.Minute); err != nil {
if err := waitForDeploymentCompleteWithOldPodTermination(t, kclient, controller.RouterDeploymentName(ic), 3*time.Minute); err != nil {
t.Fatalf("failed to observe deployment completion: %v", err)
}

Expand Down

0 comments on commit 7279960

Please sign in to comment.