microsoft/Terminal

TestMouseWheelReadConsoleInputHelper tests are flaky

Open

#4.494 geöffnet am 6. Feb. 2020

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (3.212 Forks)batch import
Area-CodeHealthArea-InputHelp WantedIssue-TaskProduct-Conhost

Repository-Metriken

Stars
 (35.764 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 27T 19h) (24 gemergte PRs in 30 T)

Beschreibung

In the InputTests, there are a handful of them that inject mouse events into the window handle.

They center around the method TestMouseWheelReadConsoleInputHelper.

They tend to fail when there are two input events in the queue instead of just the one they expect.

My theory is that the extra event in the queue is a focus or unfocus event.

We should make them all more robust to the point where they don't care/skip excess focus/unfocus events.

Contributor Guide