Skip to content

Commit baabdc8

Browse files
committed
Actually write all events and not only the first one
1 parent 313bec7 commit baabdc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/testrunner/runners/system/runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@ func (r *runner) generateTestResult(config *testConfig, docs []common.MapStr) er
12751275
found := false
12761276
for _, doc := range docs {
12771277
if sample.Matches(doc) {
1278-
if err := writeSampleEvent(rootPath, docs[0], sample.Name); err != nil {
1278+
if err := writeSampleEvent(rootPath, doc, sample.Name); err != nil {
12791279
return fmt.Errorf("failed to write sample event file: %w", err)
12801280
}
12811281
found = true

0 commit comments

Comments
 (0)