Skip to content

Commit

Permalink
Add a sleep before checking machine scripts
Browse files Browse the repository at this point in the history
Once a while we seem to have issues asserting the existence of the
startup script. Let's see if we can rule this out with a sleep after
reboot.
  • Loading branch information
GabrielNagy committed Mar 8, 2024
1 parent 13c891c commit edbb00e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions e2e/cmd/run_tests/04_test_pro_managers/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ ftp_proxy="http://127.0.0.1:8080"`); err != nil {
if err := client.Reboot(); err != nil {
return err
}

// Sleep a few seconds to ensure the machine startup script has time to run
time.Sleep(10 * time.Second)

if err := client.RequireFileExists(ctx, "/etc/created-by-adsys-machine-shutdown-script"); err != nil {
return err
}
Expand Down

0 comments on commit edbb00e

Please sign in to comment.