Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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