Sfoglia il codice sorgente

Made test case more robust when running on Github Actions

Signed-off-by: Stan Janssen <stan.janssen@elaad.nl>
Stan Janssen 4 anni fa
parent
commit
2f68966b16
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 "