Răsfoiți Sursa

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

BDisp 1 an în urmă
părinte
comite
9646c101b0
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  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 ();
 		}