mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix type resolution issue, force to Result
This commit is contained in:
parent
a3ee53ed33
commit
4a1b646015
1 changed files with 2 additions and 2 deletions
|
@ -9,13 +9,13 @@ module Spectator
|
||||||
@config.formatter.start_suite
|
@config.formatter.start_suite
|
||||||
elapsed = Time.measure do
|
elapsed = Time.measure do
|
||||||
results = @suite.map do |example|
|
results = @suite.map do |example|
|
||||||
run_example(example)
|
run_example(example).as(Result)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@config.formatter.end_suite(TestSuiteResults.new(results, elapsed))
|
@config.formatter.end_suite(TestSuiteResults.new(results, elapsed))
|
||||||
end
|
end
|
||||||
|
|
||||||
private def run_example(example)
|
private def run_example(example) : Result
|
||||||
@config.formatter.start_example(example)
|
@config.formatter.start_example(example)
|
||||||
result = Internals::Harness.run(example)
|
result = Internals::Harness.run(example)
|
||||||
@config.formatter.end_example(result)
|
@config.formatter.end_example(result)
|
||||||
|
|
Loading…
Reference in a new issue