Skip to content

Commit 87d3cdd

Browse files
authored
Handle error for 0 doc hits for a data stream (#744)
* Fix panic caused when there are no doc hits for a data stream during system tests.
1 parent 8476aec commit 87d3cdd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/testrunner/runners/system/runner.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ func (r *runner) runTest(config *testConfig, ctxt servicedeployer.ServiceContext
434434

435435
if !passed {
436436
result.FailureMsg = fmt.Sprintf("could not find hits in %s data stream", dataStream)
437+
return result.WithError(fmt.Errorf("%s", result.FailureMsg))
437438
}
438439

439440
// Validate fields in docs

0 commit comments

Comments
 (0)