Skip to content

Server/Client connections aren't always closed at the end of each unit test #44

Open
@gabis-precog

Description

@gabis-precog

As a result of connections not always closing, asyncio tasks are not ended properly during tests.

Steps to reproduce

  • in "def cancel_if_task_exists" function, set logger().warning('Runtime error', exc_info=True) to error level
  • in setup.cfg enable treating warnings as errors (comment out the relevant settings)

Expected: no failing tests

Actual : tests randomly fail with various errors caused by race conditions on test teardown.

This is likely specific to the quic transport, although might not be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions