Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Timeout decorator #26

Closed
Aboisier opened this issue Feb 8, 2019 · 1 comment
Closed

@Timeout decorator #26

Aboisier opened this issue Feb 8, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@Aboisier
Copy link
Collaborator

Aboisier commented Feb 8, 2019

Currently, if you want to set a custom timeout but do not have cases or a custom test name, you need to pass two empty arguments.

@Test(undefined, undefined, 10000) // Really slow test
async slowTest() {
    // Some test
}

As suggested by @bryanmenard in #25, it would be interesting to specify the custom timeout using a @Timeout decorator instead.

@Test()
@Timeout(7000) // Really slow test
async slowTest() {
    // Some test
}
@Aboisier Aboisier changed the title Timeout decorator @Timeout decorator Feb 8, 2019
@Aboisier Aboisier added the enhancement New feature or request label Feb 8, 2019
@Aboisier
Copy link
Collaborator Author

Implemented in #28 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant