Skip to content

Upgrade to time-machine 2.13.0+ breaks our tests #832

Open
@llucax

Description

@llucax

What happened?

The tests, for example tests/actor/test_battery_status.py::TestBatteryStatus::test_async_battery_status, get stuck waiting forever if we upgrade to 2.13.0+.

What did you expect instead?

Tests work as with 2.12.0.

Affected version(s)

No response

Affected part(s)

Unit, integration and performance tests (part:tests), Build script, CI, dependencies, etc. (part:tooling)

Extra information

The problem seems to be that asyncio.sleep() breaks, and blocks forever. This needs investigation to see if it is something of our environment or a regression in time-machine.

A quick investigation shows that it is stuck only when tick=False, so it is probably related to the new support for the monotonic clock in 2.13.0, I guess now the monotonic clock stops now too and in 2.12.0 it didn't.

Related upstream issue:

Metadata

Metadata

Assignees

No one assigned

    Labels

    part:testsAffects the unit, integration and performance (benchmarks) testspart:toolingAffects the development tooling (CI, deployment, dependency management, etc.)type:bugSomething isn't working

    Type

    No type

    Projects

    Status

    To do

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions