Skip to content

Commit

Permalink
skip if cri proxy is disabled/undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
pacoxu committed Nov 19, 2024
1 parent cf480a3 commit 59dfb0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/e2e_node/image_pull_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ var _ = SIGDescribe("Pull Image", feature.CriProxy, framework.WithSerial(), func
})

ginkgo.It("Image pull retry backs off on error.", func(ctx context.Context) {
if err := resetCRIProxyInjector(e2eCriProxy); err != nil {
ginkgo.Skip("Skip the test since the CRI Proxy is undefined.")
}

// inject PullImage failed to trigger backoff
expectedErr := fmt.Errorf("PullImage failed")
err := addCRIProxyInjector(e2eCriProxy, func(apiName string) error {
Expand Down

0 comments on commit 59dfb0e

Please sign in to comment.