Skip to content

Commit

Permalink
test: protect against inappropriate failure on slow machine
Browse files Browse the repository at this point in the history
  • Loading branch information
jesteria committed Nov 13, 2024
1 parent be86a2d commit c3acb82
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/test_sched/test_tiered_tenancy.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,12 @@ def test_large_result(confpatch, schedpatch):

assert logs.field_equals(completed=1, total=1, active=0)

assert event.duration.total_seconds() < 1
# timing is machine-dependent -- and should really be *very* quick -- but we can't ensure this
# across test platforms. rather, the below duration is a compromise, and "fast" relative to
# previous stdout-reading implementations.
assert event.duration.total_seconds() < 5

assert session.seconds < 1
assert session.seconds < 5

assert len(bytes(event.stdout)) == HUNDRED_MB

Expand Down

0 comments on commit c3acb82

Please sign in to comment.