Skip to content

Commit

Permalink
👻 increase timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Gaikwad <pgaikwad@redhat.com>
  • Loading branch information
pranavgaikwad committed Apr 1, 2024
1 parent 406deb8 commit 13578a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions analysis/analysis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ func TestApplicationAnalysis(t *testing.T) {
time.Sleep(Wait)
}

if task.State == "Running" {
t.Error("Timed out running the test. Details:")
pp.Println(task)
}

if task.State != "Succeeded" {
t.Error("Analyze Task failed. Details:")
pp.Println(task)
Expand Down
4 changes: 2 additions & 2 deletions analysis/pkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
RichClient *binding.RichClient

// Analysis waiting loop 5 minutes (60 * 5s)
Retry = 100
Retry = 200
Wait = 5 * time.Second
)

Expand Down Expand Up @@ -45,7 +45,7 @@ type TC struct {
Rules addon.Rules
Scope *addon.Scope
WithDeps bool
Binary bool
Binary bool
Artifact string
// After-analysis assertions.
ReportContent map[string][]string
Expand Down

0 comments on commit 13578a9

Please sign in to comment.