From 998b46ba469c41b5a7f013a188233bfdbeee83bd Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Tue, 8 Mar 2022 09:34:00 -0500 Subject: [PATCH] Change assertion for DetachInternetGateway to eventually to provide timeout for longer running operations Change timeout to 30s --- test/e2e/suites/unmanaged/unmanaged_functional_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/suites/unmanaged/unmanaged_functional_test.go b/test/e2e/suites/unmanaged/unmanaged_functional_test.go index 964d19abe9..47ea7429b7 100644 --- a/test/e2e/suites/unmanaged/unmanaged_functional_test.go +++ b/test/e2e/suites/unmanaged/unmanaged_functional_test.go @@ -647,7 +647,7 @@ var _ = ginkgo.Context("[unmanaged] [functional]", func() { Expect(shared.ReleaseAddress(e2eCtx, allocationID)).To(BeTrue()) ginkgo.By("Detaching Internet gateway") - Expect(shared.DetachInternetGateway(e2eCtx, igwID, vpcID)).To(BeTrue()) + Eventually(shared.DetachInternetGateway(e2eCtx, igwID, vpcID), 30*time.Second).Should(BeTrue()) ginkgo.By("Deleting Internet gateway") Expect(shared.DeleteInternetGateway(e2eCtx, igwID)).To(BeTrue())