mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 07:47:54 +01:00
Trying fix unit test error
This commit is contained in:
@@ -137,6 +137,12 @@ public class GuiTestContext : IDisposable
|
||||
throw _ex; // Propagate any exception that happened in the background task
|
||||
}
|
||||
|
||||
if (Application.Top is { Running: false })
|
||||
{
|
||||
Application.Top?.Dispose ();
|
||||
Application.Shutdown ();
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user