Skip to content

Commit

Permalink
functionaltests: increase timeout and print error logs (#15305)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
endorama and marclop authored Jan 21, 2025
1 parent abecb68 commit 8615428
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 8615428

Please sign in to comment.