microsoft/Terminal

TestMouseWheelReadConsoleInputHelper tests are flaky

Open

#4.494 aberto em 6 de fev. de 2020

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)C++ (3.212 forks)batch import
Area-CodeHealthArea-InputHelp WantedIssue-TaskProduct-Conhost

Métricas do repositório

Stars
 (35.764 stars)
Métricas de merge de PR
 (Mesclagem média 27d 19h) (24 fundiu PRs em 30d)

Description

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.

Guia do colaborador