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.

贡献者指南