Skip to content

Commit

Permalink
osbuildexecutor: wait longer for executor and without path
Browse files Browse the repository at this point in the history
  • Loading branch information
croissanne committed Jun 7, 2024
1 parent 7dd26a1 commit 2e088f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/osbuildexecutor/runner-impl-aws-ec2.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ func prepareSources(manifest []byte, store string, extraEnv []string, result boo
// tests.
func waitForSI(ctx context.Context, host string) bool {
client := http.Client{
Timeout: time.Second * 1,
Timeout: time.Second * 10,
}

for {
resp, err := client.Get(fmt.Sprintf("%s/api/v1/", host))
resp, err := client.Get(fmt.Sprintf("%s/", host))
if err != nil {
logrus.Debugf("Waiting for secure instance continues: %v", err)
}
Expand All @@ -62,7 +62,6 @@ func waitForSI(ctx context.Context, host string) bool {
logrus.Error("Timeout waiting for secure instance to spin up")
return false
default:
time.Sleep(time.Second)
continue
}
}
Expand Down

0 comments on commit 2e088f1

Please sign in to comment.