microsoft/Terminal

TestMouseWheelReadConsoleInputHelper tests are flaky

Open

#4,494 建立於 2020年2月6日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)C++ (3,212 fork)batch import
Area-CodeHealthArea-InputHelp WantedIssue-TaskProduct-Conhost

倉庫指標

Star
 (35,764 star)
PR 合併指標
 (平均合併 27天 19小時) (30 天內合併 24 個 PR)

描述

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.

貢獻者指南