Skip to content

Commit 7a7d3fe

Browse files
committed
fix nil pointer panic
1 parent e5df0c7 commit 7a7d3fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/execution/scheduler.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,7 @@ func (e *Scheduler) Run(globalCtx, runCtx context.Context, samplesOut chan<- met
451451
e.initProgress.Modify(pb.WithConstProgress(1, "Starting test..."))
452452
e.state.MarkStarted()
453453
defer func() {
454-
isMarkedAsFailed := e.state.Test.TestStatus.Failed()
455-
if isMarkedAsFailed {
454+
if e.state.Test.TestStatus != nil && e.state.Test.TestStatus.Failed() {
456455
e.state.SetExecutionStatus(lib.ExecutionStatusMarkedAsFailed)
457456
return
458457
}

0 commit comments

Comments
 (0)