Skip to content

Commit 54d8b0c

Browse files
functionaltests: increase timeout and print error logs (elastic#15305) (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]>
1 parent 0321024 commit 54d8b0c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/functional-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
4848
- run: |
4949
export TF_VAR_CREATED_DATE=$(date +%s)
50-
cd functionaltests && go test -v -timeout=20m -target "${{ matrix.environment }}" ./
50+
cd functionaltests && go test -v -timeout=30m -target "${{ matrix.environment }}" ./
5151
5252
notify:
5353
if: always()

functionaltests/8_15_test.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,10 @@ func TestUpgrade_8_15_4_to_8_16_0(t *testing.T) {
148148

149149
res, err := ecc.GetESErrorLogs(ctx)
150150
require.NoError(t, err)
151-
assert.Zero(t, res.Hits.Total.Value)
151+
if !assert.Zero(t, res.Hits.Total.Value, "expected no error logs, but found some") {
152+
t.Log("found error logs:")
153+
for _, h := range res.Hits.Hits {
154+
t.Log(string(h.Source_))
155+
}
156+
}
152157
}

0 commit comments

Comments
 (0)