Browse Source

Made test case more robust when running on Github Actions

Signed-off-by: Stan Janssen <stan.janssen@elaad.nl>
Stan Janssen 4 years ago
parent
commit
2f68966b16
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/test_failures.py

+ 1 - 1
test/test_failures.py

@@ -53,7 +53,7 @@ async def test_vtn_no_create_party_registration_handler(caplog):
     await asyncio.sleep(0.5)
     await asyncio.sleep(0.5)
     await server.stop()
     await server.stop()
     await client.stop()
     await client.stop()
-    assert len(caplog.messages) == 2
+    await asyncio.sleep(0)
     assert 'No VEN ID received from the VTN, aborting.' in caplog.messages
     assert 'No VEN ID received from the VTN, aborting.' in caplog.messages
     assert ("You should implement and register your own on_create_party_registration "
     assert ("You should implement and register your own on_create_party_registration "
             "handler if you want VENs to be able to connect to you. This handler will "
             "handler if you want VENs to be able to connect to you. This handler will "