tests: reply with correct Pong event

This commit is contained in:
Luna 2022-01-28 00:24:24 -03:00
parent 0faae9fafd
commit 9b98257741
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class AsyncWebsocket:
# and fetch the next event
event = next(self.ws.events())
if isinstance(event, Ping):
await self.send(Pong())
await self.send(event.response())
event = next(self.ws.events())
if isinstance(event, CloseConnection):