thegridelectric / gw-scada-spaceheat-python

GridWorks SCADA for space heating
MIT License
5 stars 2 forks source link

Intermittent failure of test_responsive_sleep #147

Open anschweitzer opened 1 year ago

anschweitzer commented 1 year ago

Failed on mac with:

 pytest --count 100   

Output:

    def test_responsive_sleep():
        sw = StopWatch()
        seconds = 0.1
        with sw:
            responsive_sleep(StopMe(), seconds, running_field_name="running")
>       assert seconds <= sw.elapsed < seconds + MAX_DELAY
E       assert 0.1132049560546875 < (0.1 + 0.01)
E        +  where 0.1132049560546875 = <tests.utils.StopWatch object at 0x11575e750>.elapsed

tests/test_actors/test_actor_utils.py:39: AssertionError