Skip to content

Commit

Permalink
functionaltests: increase timeout and print error logs (elastic#15305) (
Browse files Browse the repository at this point in the history
elastic#15323)

* increase timeout to 30 minutes

* print retrieved error logs

* Update functionaltests/8_15_test.go

Co-authored-by: Marc Lopez Rubio <[email protected]>

---------

Co-authored-by: Marc Lopez Rubio <[email protected]>
(cherry picked from commit 8615428)

Co-authored-by: Edoardo Tenani <[email protected]>
  • Loading branch information
mergify[bot] and endorama authored Jan 21, 2025
1 parent 0321024 commit 54d8b0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- run: |
export TF_VAR_CREATED_DATE=$(date +%s)
cd functionaltests && go test -v -timeout=20m -target "${{ matrix.environment }}" ./
cd functionaltests && go test -v -timeout=30m -target "${{ matrix.environment }}" ./
notify:
if: always()
Expand Down
7 changes: 6 additions & 1 deletion functionaltests/8_15_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,10 @@ func TestUpgrade_8_15_4_to_8_16_0(t *testing.T) {

res, err := ecc.GetESErrorLogs(ctx)
require.NoError(t, err)
assert.Zero(t, res.Hits.Total.Value)
if !assert.Zero(t, res.Hits.Total.Value, "expected no error logs, but found some") {
t.Log("found error logs:")
for _, h := range res.Hits.Hits {
t.Log(string(h.Source_))
}
}
}

0 comments on commit 54d8b0c

Please sign in to comment.