From 9bc5f26b416128ea83484cdc64dbf99cf907fd1e Mon Sep 17 00:00:00 2001 From: Alexander Matyushentsev Date: Mon, 5 Aug 2019 10:12:03 -0700 Subject: [PATCH] Fix flaky TestDeletingAppStuckInSync test (#2100) --- test/e2e/app_deletion_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/e2e/app_deletion_test.go b/test/e2e/app_deletion_test.go index 94de5dae24..d425ddeabc 100644 --- a/test/e2e/app_deletion_test.go +++ b/test/e2e/app_deletion_test.go @@ -3,7 +3,6 @@ package e2e import ( "testing" - "github.com/argoproj/argo-cd/errors" . "github.com/argoproj/argo-cd/pkg/apis/application/v1alpha1" . "github.com/argoproj/argo-cd/test/e2e/fixture" . "github.com/argoproj/argo-cd/test/e2e/fixture/app" @@ -32,8 +31,8 @@ func TestDeletingAppStuckInSync(t *testing.T) { When(). TerminateOp(). And(func() { - // force delete the resource - errors.FailOnErr(Run("", "kubectl", "-n", DeploymentNamespace(), "exec", "-i", "hook", "touch", "/tmp/done")) + // force delete the resource. don't fail if whole already deleted + _, _ = Run("", "kubectl", "-n", DeploymentNamespace(), "exec", "-i", "hook", "touch", "/tmp/done") }). Then(). // delete is successful