arquillian-core icon indicating copy to clipboard operation
arquillian-core copied to clipboard

Using a timeout with testng breaks everything

Open ivankelly opened this issue 7 years ago • 1 comments

Issue Overview

If you add a timeout to a testng test using org.jboss.arquillian.testng.Arquillian, everything breaks.

Expected Behaviour

Adding a timeout shouldn't break stuff.

Current Behaviour

It breaks, and it breaks in a very non-obvious manner.

Steps To Reproduce
  1. Change @Test to @Test(timeOut=1000) on the test ArquillianClass1
  2. Run the test
Additional Information

Tested with testng 6.13.1, but the problem is with arquillian. It runs @BeforeSuite in a different thread to the test itself. @BeforeSuite sets up a thread local context object (TestRunnerAdapter), so when the test runs, it doesn't find this object, and everything goes to hell.

ivankelly avatar Apr 04 '18 14:04 ivankelly

Thanks for reporting this issue. Could you contribute a reproducer test?

bartoszmajsak avatar Jul 04 '18 08:07 bartoszmajsak