Skip to content

Commit

Permalink
test: fix a lid test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
whot committed May 23, 2017
1 parent 78a810c commit 3f6b97d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-lid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3f6b97d

Please sign in to comment.