mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-24 09:50:08 +00:00
Fix TestAutoSyncSelfHealEnabled test flakiness (#2282)
This commit is contained in:
parent
39cb8db3e1
commit
5d606cae2f
1 changed files with 2 additions and 0 deletions
|
|
@ -71,6 +71,8 @@ func TestAutoSyncSelfHealEnabled(t *testing.T) {
|
|||
When().
|
||||
// SyncError condition should be removed after successful sync
|
||||
PatchFile("guestbook-ui-deployment.yaml", `[{"op": "replace", "path": "/spec/revisionHistoryLimit", "value": 1}]`).
|
||||
// Trigger refresh twice to make sure controller notices previously failed sync attempt before expectation timeout expires
|
||||
Refresh(RefreshTypeNormal).
|
||||
Refresh(RefreshTypeNormal).Then().
|
||||
Expect(OperationPhaseIs(OperationSucceeded)).
|
||||
Expect(SyncStatusIs(SyncStatusCodeSynced)).
|
||||
|
|
|
|||
Loading…
Reference in a new issue