Skip to content

Commit 7bffa76

Browse files
authored
Merge pull request #1067 from miketalley/fix/test-run-status-leak
calling TestRunStatus.MarkFinished() to trigger callbacks
2 parents ca790eb + b36782e commit 7bffa76

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

MCPForUnity/Editor/Services/TestJobManager.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,10 @@ internal static TestJob GetJob(string jobId)
501501
if (_currentJobId == jobId)
502502
{
503503
_currentJobId = null;
504+
// Keep TestRunStatus in sync: when initialization times out, neither
505+
// RunStarted nor RunFinished fires, so the running flag would otherwise leak.
506+
// Only clear it if this job is still the active one — a newer job may have taken over.
507+
TestRunStatus.MarkFinished();
504508
}
505509
shouldPersist = true;
506510
}

0 commit comments

Comments
 (0)