mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Ensure harness is reset on error
This commit is contained in:
parent
c48467f783
commit
9cf82928b7
1 changed files with 2 additions and 2 deletions
|
@ -26,9 +26,9 @@ module Spectator::Internals
|
|||
# The result returned from `Example#run` will be returned.
|
||||
def self.run(example : Example) : Result
|
||||
@@current = new(example)
|
||||
result = example.run
|
||||
example.run
|
||||
ensure
|
||||
@@current = nil
|
||||
result
|
||||
end
|
||||
|
||||
# Retrieves the current running example.
|
||||
|
|
Loading…
Reference in a new issue