Skip to content

Commit

Permalink
Flush fakeintake payloads before testing IO collection
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjli committed Mar 7, 2025
1 parent 6bcac34 commit d2f590e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/new-e2e/tests/process/windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ func (s *windowsTestSuite) TestProcessCheckIO() {
awshost.WithAgentOptions(agentparams.WithAgentConfig(processCheckConfigStr), agentparams.WithSystemProbeConfig(systemProbeConfigStr)),
))

// Flush fake intake to remove payloads that won't have IO stats
s.Env().FakeIntake.Client().FlushServerAndResetAggregators()

assert.EventuallyWithT(t, func(collect *assert.CollectT) {
assertRunningChecks(collect, s.Env().Agent.Client, []string{"process", "rtprocess"}, true)
}, 1*time.Minute, 5*time.Second)
Expand Down

0 comments on commit d2f590e

Please sign in to comment.