Skip to content

Commit

Permalink
Report could not find hits as test case error (#1650)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodm authored Jan 29, 2024
1 parent 5cd6111 commit 8b4aaa0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/testrunner/runners/system/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -711,8 +711,7 @@ func (r *runner) runTest(config *testConfig, ctxt servicedeployer.ServiceContext
}

if !passed {
result.FailureMsg = fmt.Sprintf("could not find hits in %s data stream", dataStream)
return result.WithError(fmt.Errorf("%s", result.FailureMsg))
return result.WithError(testrunner.ErrTestCaseFailed{Reason: fmt.Sprintf("could not find hits in %s data stream", dataStream)})
}

logger.Debugf("check whether or not synthetics is enabled (component template %s)...", componentTemplatePackage)
Expand Down Expand Up @@ -1341,7 +1340,6 @@ func (r *runner) generateTestResult(docs []common.MapStr, specVersion semver.Ver
}

func (r *runner) checkAgentLogs(dumpOptions stack.DumpOptions, startTesting time.Time, errorPatterns []logsByContainer) (results []testrunner.TestResult, err error) {

for _, patternsContainer := range errorPatterns {
startTime := time.Now()

Expand Down

0 comments on commit 8b4aaa0

Please sign in to comment.