-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix NPE for GenericContainer::isRunning (#411) #412
Fix NPE for GenericContainer::isRunning (#411) #412
Conversation
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.
Hey @dhargo,
Thanks for contributing it so quickly!
May I ask you to add a simple test where you just create GenericContainer()
object and do isRunning
on it?
Hi @bsideup, |
@@ -145,6 +145,14 @@ public static void setupContent() throws FileNotFoundException { | |||
// } | |||
|
|||
@Test | |||
public void testIsRunning() { | |||
GenericContainer container = new GenericContainer(); |
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.
please add try(GenericContainer container = new GenericContainer()) {
here (it implements AutoClosable
), otherwise the container will remain until JVMs shutdown.
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.
Sorry - my bad.
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.
LGTM
@dhargo Looks good! Only one more thing - please add a record to CHANGELOG.md (sorry for not mentioning that before) |
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.
CHANGELOG.md should mention the change
Sorry for late CHANGELOG.md update. |
@dhargo perfect, thanks! :) |
No description provided.