From ef5a4d1dbcbad6f19463340ba73f90a155af602f Mon Sep 17 00:00:00 2001 From: Sainjal Poly Date: Sat, 23 Mar 2019 11:46:12 +0530 Subject: [PATCH] Update MethodInvocationHelper.java --- src/main/java/org/testng/internal/MethodInvocationHelper.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/org/testng/internal/MethodInvocationHelper.java b/src/main/java/org/testng/internal/MethodInvocationHelper.java index 33e9f8f43c..a13d32a2a4 100644 --- a/src/main/java/org/testng/internal/MethodInvocationHelper.java +++ b/src/main/java/org/testng/internal/MethodInvocationHelper.java @@ -237,7 +237,6 @@ public void runTestMethod(ITestResult tr) { try { invokeMethod(thisMethod, testInstance, parameters); } catch (Throwable t) { - error[0] = t; tr.setThrowable(t); // make Throwable available to IHookable } } @@ -248,9 +247,6 @@ public Object[] getParameters() { } }; hookable.run(callback, testResult); - if (error[0] != null) { - throw error[0]; - } } /**