test: fix a multitap test expecting one tap too few

The problem was masked by a missing timeout, causing one up / down pair to not yet be enqueued before reading the queue.
This commit is contained in:
satrmb 2019-11-22 15:36:24 +01:00 committed by Peter Hutterer
parent 490131ff61
commit bba79754d6

View file

@ -3498,7 +3498,10 @@ START_TEST(touchpad_tap_palm_multitap_down_again)
msleep(10);
}
for (ntaps = 0; ntaps <= 2 * range; ntaps++) {
litest_timeout_tap();
libinput_dispatch(li);
for (ntaps = 0; ntaps <= 2 * range + 1; ntaps++) {
litest_assert_button_event(li,
BTN_LEFT,
LIBINPUT_BUTTON_STATE_PRESSED);