microsoft/Terminal

TestMouseWheelReadConsoleInputHelper tests are flaky

開放

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

 (3 則留言) (0 個反應) (0 位負責人)C++ (9,275 個分叉)batch import
Area-CodeHealthArea-InputHelp WantedIssue-TaskProduct-Conhost

倉庫指標

星標
 (103,173 顆星)
PR 合併指標
 (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.

貢獻者指南