Skip to content

Commit 3e7d103

Browse files
authored
fix flaky TestClassicAndReceiverAgentMonitoring (#11038)
1 parent 988105a commit 3e7d103

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
@@ -245,9 +245,9 @@ func TestClassicAndReceiverAgentMonitoring(t *testing.T) {
245245
err = classicFixture.Configure(ctx, updatedPolicyBytes)
246246
require.NoError(t, err, "error configuring fixture")
247247

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

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

0 commit comments

Comments
 (0)