mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Remove elapsed time from pending results
This commit is contained in:
parent
577877e067
commit
493e30acee
4 changed files with 1 additions and 15 deletions
|
@ -148,7 +148,7 @@ describe Spectator::Runner do
|
|||
spy = SpyFormatter.new
|
||||
runner = Spectator::Runner.new(suite, spectator_test_config(spy))
|
||||
max_time = Time.measure { runner.run }
|
||||
min_time = spy.end_example_calls.sum(&.elapsed)
|
||||
min_time = spy.end_example_calls.each.map(&.as(Spectator::FinishedResult)).sum(&.elapsed)
|
||||
report = spy.end_suite_calls.first
|
||||
report.runtime.should be <= max_time
|
||||
report.runtime.should be >= min_time
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue