Преглед на файлове

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

BDisp преди 1 година
родител
ревизия
9646c101b0
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      UnitTests/Views/ViewTests.cs

+ 4 - 0
UnitTests/Views/ViewTests.cs

@@ -1246,6 +1246,10 @@ namespace Terminal.Gui.ViewTests {
 
 			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
 			Application.Shutdown ();
 		}