Skip to content

Commit 47a3ed6

Browse files
authored
fix: Don't skip log printing if job has an id and has completed (#1013)
1 parent 815ae46 commit 47a3ed6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/saucecloud/cloud.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,10 @@ func (r *CloudRunner) logSuite(ctx context.Context, res result) {
803803
logger.Error().Err(res.err).Msg("Suite failed to start.")
804804
return
805805
}
806-
logger.Error().Err(res.err).Msg("Suite failed unexpectedly.")
807-
return
806+
if !job.Done(res.job.Status) {
807+
logger.Error().Err(res.err).Msg("Suite failed unexpectedly.")
808+
return
809+
}
808810
}
809811

810812
// Job isn't done, hence nothing more to log about it.

0 commit comments

Comments
 (0)