______________ TestDHTCommunity.test_unload_while_contacting_node ______________
[gw2] darwin -- Python 3.8.18 /Users/runner/hostedtoolcache/Python/3.8.18/x64/bin/python
ipv8/test/base.py:189: in _callTearDown
self._callAsync(self.tearDown)
../../../hostedtoolcache/Python/3.8.18/x64/lib/python3.8/unittest/async_case.py:80: in _callAsync
return self._asyncioTestLoop.run_until_complete(fut)
../../../hostedtoolcache/Python/3.8.18/x64/lib/python3.8/asyncio/base_events.py:616: in run_until_complete
return future.result()
../../../hostedtoolcache/Python/3.8.18/x64/lib/python3.8/unittest/async_case.py:102: in _asyncioLoopRunner
ret = await awaitable
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <ipv8.test.dht.test_community.TestDHTCommunity testMethod=test_unload_while_contacting_node>
async def tearDown(self) -> None:
"""
Tear down all the overlays, remove all files and check if any errors "escaped" the unit test scope.
Always call this after your own tearDown!
"""
try:
for node in self.nodes:
await node.stop()
internet.clear()
finally:
while self._tempdirs:
shutil.rmtree(self._tempdirs.pop(), ignore_errors=True)
# Now that everyone has calmed down, sweep up the remaining callbacks and check if they failed.
# [port] ``asynctest.helpers.exhaust_callbacks`` no longer works in Python 3.10
while self.loop._ready: # noqa: SLF001
await sleep(0)
# [end of ``asynctest.helpers.exhaust_callbacks`` port]
if self._uncaught_async_failure is not None:
> raise self._uncaught_async_failure["exception"]
E KeyError: 'exception'
ipv8/test/base.py:279: KeyError
------------------------------ Captured log call -------------------------------
WARNING RequestCache:requestcache.py:186 Dropping <Request find-15676> due to shutdown!
The following failure occurs in the tests.