microsoft/Terminal

TestMouseWheelReadConsoleInputHelper tests are flaky

オープン

#4,494 opened on 2020/02/06

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)C++ (9,275 件のフォーク)batch import
Area-CodeHealthArea-InputHelp WantedIssue-TaskProduct-Conhost

Repository metrics

Stars
 (103,173 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド