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]; - } } /**