mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-19 21:37:57 +08:00
more test work
This commit is contained in:
parent
bd0f952ddf
commit
27d633eeb3
@ -192,8 +192,15 @@ class _Tester:
|
||||
client_endpoint_ref = weakref.ref(self.client.endpoint)
|
||||
del self.client._endpoint
|
||||
del self.server._endpoint
|
||||
assert server_endpoint_ref() is None, 'Server did not go down cleanly.'
|
||||
assert client_endpoint_ref() is None, 'Client did not go down cleanly.'
|
||||
|
||||
for name, endpoint in [
|
||||
('server', server_endpoint_ref()),
|
||||
('client', client_endpoint_ref()),
|
||||
]:
|
||||
if endpoint is not None:
|
||||
import gc
|
||||
print('referrers:', gc.get_referrers(endpoint))
|
||||
raise RuntimeError(f'{name} did not go down cleanly')
|
||||
|
||||
async def _run(self, testcall: Awaitable[None]) -> None:
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user