mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-23 09:18:26 +00:00
Fix flaky TestDeletingAppStuckInSync test (#2100)
This commit is contained in:
parent
1e81f2a163
commit
9bc5f26b41
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue