mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix dumb mistakes
This commit is contained in:
parent
b8b6b3b609
commit
ff084bb3cd
1 changed files with 2 additions and 2 deletions
|
@ -91,10 +91,10 @@ module Spectator
|
||||||
|
|
||||||
# Yields to run the test code and returns information about the outcome.
|
# Yields to run the test code and returns information about the outcome.
|
||||||
# Returns a tuple with the elapsed time and an error if one occurred (otherwise nil).
|
# Returns a tuple with the elapsed time and an error if one occurred (otherwise nil).
|
||||||
private def capture : Tuple(Time, Exception?)
|
private def capture : Tuple(Time::Span, Exception?)
|
||||||
error = nil
|
error = nil
|
||||||
elapsed = Time.measure do
|
elapsed = Time.measure do
|
||||||
error = catch_error { yield }
|
error = catch { yield }
|
||||||
end
|
end
|
||||||
{elapsed, error}
|
{elapsed, error}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue