arquillian-core
arquillian-core copied to clipboard
Using a timeout with testng breaks everything
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
- Change
@Testto@Test(timeOut=1000)on the testArquillianClass1 - 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.
Thanks for reporting this issue. Could you contribute a reproducer test?