Skip to content

Timeout parameter on @Test Annotation does not override Timeout Rule #1126

@voomdoon

Description

@voomdoon

I refer to https://github.com/junit-team/junit/wiki/Timeout-for-tests

If I use

@Rule
public Timeout globalTimeout = Timeout.seconds(10);

@Test(timeout=20000)
public void testWithTimeout() {
  ...
}

the test schould timeout afer 20s but it times out after 10s

Metadata

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