Skip to content

Commit c40ce34

Browse files
Increase timeout for flaky test TestSensitiveLogsESExporter (#11229) (#11278)
* Increase timeout for flaky test TestSensitiveLogsESExporter * fix correct test * fix old test (cherry picked from commit 4f8fbe9) Co-authored-by: Khushi Jain <[email protected]>
1 parent a8ba0bf commit c40ce34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing/integration/ess/beat_receivers_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ agent.logging.stderr: true
10441044
}
10451045

10461046
var monitoringDoc estools.Documents
1047-
assert.EventuallyWithT(t,
1047+
require.EventuallyWithT(t,
10481048
func(ct *assert.CollectT) {
10491049
findCtx, findCancel := context.WithTimeout(t.Context(), 10*time.Second)
10501050
defer findCancel()
@@ -1054,7 +1054,7 @@ agent.logging.stderr: true
10541054

10551055
assert.GreaterOrEqual(ct, monitoringDoc.Hits.Total.Value, 1)
10561056
},
1057-
2*time.Minute, 5*time.Second,
1057+
3*time.Minute, 5*time.Second,
10581058
"Expected at least %d log, got %d", 1, monitoringDoc.Hits.Total.Value)
10591059

10601060
inputField := monitoringDoc.Hits.Hits[0].Source["input"]

0 commit comments

Comments
 (0)