You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(test): mock measure_ms in assert_duration failure paths
The three failure-path tests only exercise the threshold comparison and
the failure message, yet each paid a real 'sleep 1' — 3s of the file's
3.3s runtime. Mock bashunit::duration::measure_ms (heredoc form, so call
args are not appended to the fake reading) and assert against fake
commands instead: ~3.3s -> ~0.4s.
One success path keeps a real short sleep so measure_ms integration
stays covered end-to-end, guarded to skip under the last-resort
date-seconds clock whose 1s resolution would read 'sleep 0.2' as 0ms.
Closes#826
0 commit comments