Skip to content

Commit

Permalink
Fixes #3836. SetupFakeDriver sometimes causes failure in the unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
BDisp committed Dec 3, 2024
1 parent d4d0675 commit ce17fdd
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions UnitTests/TestHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,8 @@ public override void After (MethodInfo methodUnderTest)
// Turn off diagnostic flags in case some test left them on
View.Diagnostics = ViewDiagnosticFlags.Off;

if (Application.Driver is { })
{
((FakeDriver)Application.Driver).Rows = 25;
((FakeDriver)Application.Driver).Cols = 25;
((FakeDriver)Application.Driver).End ();
}

Application.Driver = null;
Application.ResetState (true);
Assert.Equal (new (0, 0, 2048, 2048), Application.Screen);
base.After (methodUnderTest);
}

Expand Down

0 comments on commit ce17fdd

Please sign in to comment.