14 lines
1.0 KiB
Plaintext
14 lines
1.0 KiB
Plaintext
# 135-invite-test-speedup: Invite test speedup
|
|
|
|
Goal: trim waits in fourth-slowest test file
|
|
|
|
Steps:
|
|
1. Read 118 result notes in done/118-slowest-tests.md.* for the #4 target (test_invite_handler TestInviteHandlerMocked x3, ~2.5s each). 2. On a feature branch: reduce sleeps/timeouts keeping all assertions identical (never weaken tests); run the file until green. Done criteria: result notes list before/after seconds + pass count, or exact blocking failure.
|
|
|
|
Done criteria: result notes appended below; file moved to done/.
|
|
|
|
Result notes (append below before moving to done/):
|
|
|
|
Completed 2026-10-08T18:56:04Z via box tasks done:
|
|
15 passed. Before: 7.71s (2.5s x3); after: 0.10-0.12s stable. Root cause: redeem_code_dom polls on time.time()+2.5s deadlines; tests patched sleep but not time, so loops spun 2.5s real time each. Fix in tests/test_invite_handler.py only: _fast_clock() fake (+1s/call, each loop runs exactly 2 iters) patched as time.time in the 3 slow tests; all assertions byte-identical, no prod change. Edit uncommitted on shared tree (no HEAD move).
|