kfaraz commented on code in PR #19046:
URL: https://github.com/apache/druid/pull/19046#discussion_r2844478372
##########
services/src/test/java/org/apache/druid/testing/embedded/TestcontainerResource.java:
##########
@@ -68,32 +68,34 @@ public boolean isRunning()
*/
public String getHost()
{
- ensureRunning();
- return container.getHost();
+ return getContainer().getHost();
Review Comment:
The `ensureRunning` is now being done inside `getContainer()` itself.
I did this since `getContainer()` used to return a `@Nullable` value and the
compiler would throw up a bunch of null check warnings.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]