Skip to content

Commit 8c629d8

Browse files
committed
Make TestEngine no longer available outside the Ready state to prevent deadlocks
The TestEngine suspends the parser from the UI thread, which deadlocks on the CE update on the change to the Ready state. Since we cannot execute anyway before the parse has completed due to the suspension attempt disallowing to trigger the tests outside the Ready state is not really a great step back.
1 parent 5c7c292 commit 8c629d8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Rubberduck.UnitTesting/UnitTesting/TestEngine.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ internal class TestEngine : ITestEngine
2020
{
2121
private static readonly ParserState[] AllowedRunStates =
2222
{
23-
ParserState.ResolvedDeclarations,
24-
ParserState.ResolvingReferences,
2523
ParserState.Ready
2624
};
2725

0 commit comments

Comments
 (0)