-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Add builder for Timeout rule. Make Timeout rule designed for extension. #986
Conversation
1896b77
to
216b881
Compare
} | ||
|
||
/** | ||
* @param millis the timeout in milliseconds | ||
* Creates a {@link Timeout} that will timeout a test after the | ||
* given duratoin, in milliseconds. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
Is there a use case for extending |
Some of the pull requests for |
ffdcdff
to
dd5140b
Compare
LGTM! If we merge this into 4.12 we have to update the release notes as well here: |
8d98dc2
to
db82674
Compare
@marcphilipp I updated the release notes. PTAL. If it looks good, I'll squash the commits. |
@Rule public final TestRule timeout = Timeout.builder() | ||
.withTimeout(10, TimeUnit.SECONDS) | ||
.withLookingForStuckThread(true) | ||
.build() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: Missing a ;
here.
LGTM besides the missing semicolon. :-) |
db82674
to
65d08cc
Compare
65d08cc
to
510d807
Compare
Good catch! Thanks. Rebased. Waiting on Travis to build, then feel free to merge. |
Add builder for Timeout rule. Make Timeout rule designed for extension.
Thanks! |
No description provided.