Bläddra i källkod

Made test case more robust when running on Github Actions

Signed-off-by: Stan Janssen <stan.janssen@elaad.nl>
Stan Janssen 4 år sedan
förälder
incheckning
2f68966b16
1 ändrade filer med 1 tillägg och 1 borttagningar
  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 server.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 ("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 "