test: drop a wait in favor of direct event processing

We know we should have an event here, so we might as well process it
immediately to speed the error case up.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-02-06 19:05:20 +10:00
parent 664ecaa152
commit ea78fef450

View file

@ -2823,9 +2823,10 @@ START_TEST(tool_in_prox_before_start)
litest_timeout_tablet_proxout();
libinput_dispatch(li);
litest_wait_for_event_of_type(li,
LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY,
-1);
event = libinput_get_event(li);
litest_is_tablet_event(event, LIBINPUT_EVENT_TABLET_TOOL_PROXIMITY);
libinput_event_destroy(event);
libinput_unref(li);
}
END_TEST