Avoid tasks lost during tests creating noisy warnings

This commit is contained in:
Julien Duponchelle committed 2016-09-02 14:09:01 +02:00
1 parent 2d86a7fdcf
commit 0afd7b78b7
2 files changed
+16 -19

No files matched your search

+1 -1
View File
@@ -377,7 +377,7 @@ class Compute:
try:
self._ws = yield from self._session().ws_connect(self._getUrl("/notifications/ws"), auth=self._auth)
except aiohttp.errors.WSServerHandshakeError:
self._ws
self._ws = None
while self._ws is not None:
try:
response = yield from self._ws.receive()