From 9676d2a2901594582c01c87b3620cb79a17d8d23 Mon Sep 17 00:00:00 2001 From: Chris Holt Date: Wed, 9 Sep 2015 13:27:35 -0500 Subject: [PATCH] fix issue #212, test passing after error --- src/canopy/runner.fs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/canopy/runner.fs b/src/canopy/runner.fs index 51416267..9e0ea7da 100644 --- a/src/canopy/runner.fs +++ b/src/canopy/runner.fs @@ -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()