Skip to content

Commit

Permalink
add wait operation
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-nour-fdc committed Aug 27, 2024
1 parent 6c54efe commit 6d1b4bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration-tests/rollout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ func TestArgoRolloutWork(t *testing.T) {
releaseApp(t, tc.app, map[string]string{
"development2": string(data),
})
time.Sleep(5 * time.Second)
time.Sleep(10 * time.Second)
// We have to sync the root app once because we have created a new app
runArgo(t, "app", "sync", "root")
// The sync may already be in progress, therefore we wait here for pending operations to finish
// runArgo(t, "app", "wait", appName, "--operation")
// runArgo(t, "app", "sync", appName)
runArgo(t, "app", "wait", appName, "--operation")
runArgo(t, "app", "sync", appName)
_, appData := runArgo(t, "app", "get", appName, "-o", "yaml")
var app simplifiedArgoApp
err = yaml.Unmarshal(appData, &app)
Expand Down

0 comments on commit 6d1b4bf

Please sign in to comment.