Skip to content

Commit

Permalink
fix: enrich more the messages of eventual condition in netflow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoutsovasilis committed Feb 9, 2024
1 parent a06c8c7 commit 1e5e4d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/filebeat/input/netflow/netflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func TestNetFlow(t *testing.T) {
defer cancelFn()

require.Eventually(t, mockPipeline.HasConnectedClients, 5*time.Second, 100*time.Millisecond,
"client connects to pipeline")
"no client has connected to the pipeline")

udpAddr, err := net.ResolveUDPAddr("udp", defaultConfig.Config.Host)
require.NoError(t, err)
Expand Down Expand Up @@ -134,7 +134,7 @@ func TestNetFlow(t *testing.T) {
require.Eventually(t, func() bool {
return len(mockPipeline.GetAllEvents()) == len(goldenData.Flows)
}, 5*time.Second, 100*time.Millisecond,
"see all expected events in pipeline")
"got a different number of events than expected")

for _, event := range goldenData.Flows {
// fields that cannot be matched at runtime
Expand Down

0 comments on commit 1e5e4d1

Please sign in to comment.