Skip to content

Commit

Permalink
improve test error message
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr committed Nov 27, 2023
1 parent 7f273ff commit d610f90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testing/integration/logs_ingestion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ func testMonitoringLogsAreShipped(
return estools.GetLogsForDataset(info.ESClient, "elastic_agent.metricbeat")
})
t.Logf("metricbeat: Got %d documents", len(docs.Hits.Hits))
require.NotZero(t, len(docs.Hits.Hits))
require.NotZero(t, len(docs.Hits.Hits),
"Looking for logs in dataset 'elastic_agent.metricbeat'")

// Stage 2: make sure all components are healthy
t.Log("Making sure all components are healthy")
Expand Down

0 comments on commit d610f90

Please sign in to comment.