backoff icon indicating copy to clipboard operation
backoff copied to clipboard

monotonic time

Open luccabb opened this issue 4 months ago • 0 comments

moving from datetime.now() to time.monotonic()

minimum fix for https://github.com/litl/backoff/issues/149

pytest looks green

(base) lcb@lcbs-MacBook-Pro backoff % pytest
====================================================================== test session starts ======================================================================
platform darwin -- Python 3.12.1, pytest-8.0.2, pluggy-1.4.0
rootdir: /Users/lcb/code/backoff
plugins: asyncio-0.23.5
asyncio: mode=Mode.STRICT
collected 123 items                                                                                                                                             

tests/test_backoff.py ................................................................................                                                    [ 65%]
tests/test_backoff_async.py ...........................                                                                                                   [ 86%]
tests/test_integration.py ..                                                                                                                              [ 88%]
tests/test_jitter.py .                                                                                                                                    [ 89%]
tests/test_wait_gen.py .............                                                                                                                      [100%]

======================================================================= warnings summary ========================================================================
tests/test_backoff_async.py:667
  tests/test_backoff_async.py:667: PytestDeprecationWarning: test_on_exception_coro_cancelling is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
    @pytest.mark.asyncio

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================ 123 passed, 1 warning in 0.21s =================================================================

luccabb avatar Mar 06 '24 09:03 luccabb