mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Don't run deferred blocks if the test fails
This also prevents overriding the test's original error with on that may occur in the deferred blocks.
This commit is contained in:
parent
23d8f4b5a6
commit
c9fb4d2d33
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ module Spectator
|
||||||
context.run_before_hooks(self)
|
context.run_before_hooks(self)
|
||||||
run_example(result)
|
run_example(result)
|
||||||
context.run_after_hooks(self)
|
context.run_after_hooks(self)
|
||||||
run_deferred(result)
|
run_deferred(result) unless result.error
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue