You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We made a poor assumption in LocalPortCheckerTest#testIsPortAvailable_WherePortIsNotAvailable which is that the default SSH port 22 is always available. Well, turns out that's not always the case. For example, on my other MacBook Pro I have Remote Login disabled, and therefore port 22 is not enabled.
So, we should determine a better way to do this, e.g. use the Dropwizard test extensions to spin up a small application running in Jetty, get its port, and use that when calling the isPortAvailable method in the test.
The text was updated successfully, but these errors were encountered:
* Instead, just open a ServerSocket on a random port and use its
port as the "in use" port. Simple and no assumptions.
* Minor update to the failure description in another test to make it
more clear that we are intentionally halting a test
* Change several tests to use JUnit Jupiter @ParameterizedTest and
added/updated failure description messages
LocalPortChecker:
* Add port to exception message thrown by findFirstOpenPortAbove method
Fixes#475
* Instead, just open a ServerSocket on a random port and use its
port as the "in use" port. Simple and no assumptions.
* Minor update to the failure description in another test to make it
more clear that we are intentionally halting a test
* Change several tests to use JUnit Jupiter @ParameterizedTest and
added/updated failure description messages
LocalPortChecker:
* Add port to exception message thrown by findFirstOpenPortAbove method
Fixes#475Closes#477
We made a poor assumption in
LocalPortCheckerTest#testIsPortAvailable_WherePortIsNotAvailable
which is that the default SSH port 22 is always available. Well, turns out that's not always the case. For example, on my other MacBook Pro I have Remote Login disabled, and therefore port 22 is not enabled.So, we should determine a better way to do this, e.g. use the Dropwizard test extensions to spin up a small application running in Jetty, get its port, and use that when calling the
isPortAvailable
method in the test.The text was updated successfully, but these errors were encountered: