Skip to content

Commit

Permalink
Check for port availability
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Oct 29, 2020
1 parent 8781171 commit 3baa087
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ ConsulAgentHttpAPIBasedDiscoveryClientTest >> consulAgentLocation [
{ #category : #accessing }
ConsulAgentHttpAPIBasedDiscoveryClientTest >> port [

| check |

check := PortAvailabilityChecker on: 9998.
check checkIfAvailableDo: [ ] ifNot: [ self fail ].
^ 9998
]

Expand Down

0 comments on commit 3baa087

Please sign in to comment.