Remove elapsed time from pending results

This commit is contained in:
Michael Miller 2019-02-12 16:36:06 -07:00
parent 577877e067
commit 493e30acee
4 changed files with 1 additions and 15 deletions

View file

@ -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