Browse Source

Fix a conflict with this unit test and the TestVKPacket unit test.

BDisp 1 year ago
parent
commit
9646c101b0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      UnitTests/Views/ViewTests.cs

+ 4 - 0
UnitTests/Views/ViewTests.cs

@@ -1246,6 +1246,10 @@ namespace Terminal.Gui.ViewTests {
 
 
 			Application.Run ();
 			Application.Run ();
 
 
+			// Ensures cleaning any keystroke.
+			// This was conflicting with the TestVKPacket unit test
+			Console.MockKeyPresses.Clear ();
+
 			// Shutdown must be called to safely clean up Application if Init has been called
 			// Shutdown must be called to safely clean up Application if Init has been called
 			Application.Shutdown ();
 			Application.Shutdown ();
 		}
 		}