Skip to content

Using a timeout with testng breaks everything #168

Open
@ivankelly

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions