Skip to content

Commit 722b206

Browse files
committed
fixed accidental slowness in port check
1 parent 9baf5f0 commit 722b206

File tree

1 file changed

+2
-1
lines changed
  • fundamentals/fundamentals-platform/src/main/scala/izumi/fundamentals/platform/integration

1 file changed

+2
-1
lines changed

fundamentals/fundamentals-platform/src/main/scala/izumi/fundamentals/platform/integration/PortCheck.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ class PortCheck(timeout: FiniteDuration) {
7070
}
7171
} catch {
7272
case t: Throwable =>
73+
// DON'T USE .getHostName here!!!
7374
val message =
74-
errorMessage(s"${evaluatedAddress.getAddress.getHostAddress}==${evaluatedAddress.getHostName}:${evaluatedAddress.getPort}, timeout: $timeout", clue)
75+
errorMessage(s"${evaluatedAddress.getAddress.getHostAddress}==${evaluatedAddress.getHostString}:${evaluatedAddress.getPort}, timeout: $timeout", clue)
7576
ResourceCheck.ResourceUnavailable(message, Some(t))
7677
}
7778
} catch {

0 commit comments

Comments
 (0)