Skip to content

Commit 786310b

Browse files
VihasMakwanamergify[bot]
authored andcommitted
fix flaky TestClassicAndReceiverAgentMonitoring (#11038)
(cherry picked from commit 3e7d103)
1 parent debf54c commit 786310b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/integration/ess/beat_receivers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ func TestClassicAndReceiverAgentMonitoring(t *testing.T) {
243243
err = classicFixture.Configure(ctx, updatedPolicyBytes)
244244
require.NoError(t, err, "error configuring fixture")
245245

246+
timestamp := time.Now().UTC().Format("2006-01-02T15:04:05.000Z")
246247
output, err := classicFixture.InstallWithoutEnroll(ctx, &installOpts)
247248
require.NoErrorf(t, err, "error install withouth enroll: %s\ncombinedoutput:\n%s", err, string(output))
248-
timestamp := time.Now().UTC().Format("2006-01-02T15:04:05.000Z")
249249

250250
require.EventuallyWithT(t, func(collect *assert.CollectT) {
251251
var statusErr error

0 commit comments

Comments
 (0)