test: fix a lid test

We were checking for the empty queue on the wrong context, the default context
got drained a few lines above.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2017-05-22 14:03:38 +10:00
parent 78a810cfd5
commit 3f6b97d4c4

View file

@ -499,7 +499,7 @@ START_TEST(lid_update_hw_on_key)
LIBINPUT_SWITCH_LID,
LIBINPUT_SWITCH_STATE_OFF);
libinput_event_destroy(event);
litest_assert_empty_queue(li);
litest_assert_empty_queue(li2);
libinput_unref(li2);
litest_delete_device(keyboard);