Skip to content

AssertionError: Task exception was never retrieved when running tests #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
leszekhanusz opened this issue Nov 11, 2020 · 1 comment
Closed
Labels
type: bug An issue or pull request relating to a bug

Comments

@leszekhanusz
Copy link
Collaborator

Sometimes when running the tests, the following warning appears:

ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-488' coro=<WebsocketsTransport._receive_data_loop() done, defined at /mnt/tera/git-repos/leszekhanusz/gql/gql/transport/websockets.py:333> exception=AssertionError()>
Traceback (most recent call last):
  File "/mnt/tera/git-repos/leszekhanusz/gql/gql/transport/websockets.py", line 340, in _receive_data_loop
    answer = await self._receive()
  File "/mnt/tera/git-repos/leszekhanusz/gql/gql/transport/websockets.py", line 169, in _receive
    assert self.websocket is not None
AssertionError

Even though the tests are passing.
It is probably harmless but we should investigate why it happens.

@leszekhanusz leszekhanusz added the type: bug An issue or pull request relating to a bug label Nov 11, 2020
@leszekhanusz
Copy link
Collaborator Author

Should be fixed by #228

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug An issue or pull request relating to a bug
Projects
None yet
Development

No branches or pull requests

1 participant