mirror of
https://github.com/2martens/tsw-timetable.git
synced 2026-10-18 00:16:51 +02:00
fix: Pass url variable correctly
This commit is contained in:
+2
-2
@@ -45,9 +45,9 @@ class RestHealthIndicator(
|
||||
*/
|
||||
override fun determineHealth(): Health {
|
||||
val random = randomizer.nextInt(100000, 999999).toString()
|
||||
val url = "$urlPrefix{$random}"
|
||||
val url = "$urlPrefix{random}"
|
||||
val response = restClientRestHealthIndicator.get()
|
||||
.uri(url)
|
||||
.uri(url, random)
|
||||
.retrieve()
|
||||
.body<String>()
|
||||
val status = if (response == serviceProperties.greeting.format(random)) Status.UP else Status.DOWN
|
||||
|
||||
Reference in New Issue
Block a user