Some checks failed
Quality gate / quality-gate (push) Has been cancelled
SIENTIAPDE-1973: Refactor unit tests for improved readability, primarily by splitting chained assertions into individual statements and minor fixture import adjustments.
11 lines
263 B
Python
11 lines
263 B
Python
from ingestor.connection.clock import MonotonicClock
|
|
|
|
|
|
def test_elapsed_is_non_negative_and_monotonic():
|
|
clk = MonotonicClock()
|
|
a = clk.elapsed()
|
|
b = clk.elapsed()
|
|
# never negative even if wall clock jumps back
|
|
assert a >= 0
|
|
assert b >= a
|