Skip to content

Commit

Permalink
fix issue #212, test passing after error
Browse files Browse the repository at this point in the history
  • Loading branch information
lefthandedgoat committed Sep 9, 2015
1 parent 410f3f4 commit 9676d2a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/canopy/runner.fs
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,17 @@ let run () =
try
suite.Before ()
test.Func ()
with
| ex when failureMessage <> null && failureMessage = ex.Message -> pass()
| ex -> fail ex test.Id <| safelyGetUrl()
finally
suite.After ()
pass()

finally
suite.After ()
pass()
with
| ex when failureMessage <> null && failureMessage = ex.Message -> pass()
| ex -> fail ex test.Id <| safelyGetUrl()
reporter.testEnd test.Id

failureMessage <- null

//run all the suites
if runFailedContextsFirst = true then
let failedContexts = history.get()
Expand Down

0 comments on commit 9676d2a

Please sign in to comment.