test: fix a test case's behavior

The default behaviour of a peck context is to handle the CONNECT event.
Let's disable that.

No effect on the test, the client cannot receive the connect event until
it's been accepted, but it's better form anyway.
This commit is contained in:
Peter Hutterer 2023-02-02 13:01:00 +10:00
parent 19c85e7ee1
commit 8bdfc8cf18

View file

@ -507,6 +507,8 @@ MUNIT_TEST(test_ei_disconnect_after_connect)
_unref_(peck) *peck = peck_new();
_unref_(eis_client) *client = NULL;
peck_enable_ei_behavior(peck, PECK_EI_BEHAVIOR_NONE);
peck_dispatch_until_stable(peck);
with_server(peck) {