Skip to content

Commit

Permalink
add client call to custom logger test, to check if custom logger is c…
Browse files Browse the repository at this point in the history
…onfigured successfully
  • Loading branch information
stokado authored and osipxd committed Feb 10, 2025
1 parent b029c20 commit 622abbe
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ class CallLoggingTest {
}
}
}
lateinit var hash: String

runTestApplication {
application {
Expand All @@ -380,11 +379,11 @@ class CallLoggingTest {
clock { 0 }
}
}
application { hash = hashCode().toString(radix = 16) }
client.get("/")
}

assertTrue(customMessages.isNotEmpty())
assertTrue(customMessages.all { it.startsWith("CUSTOM TRACE:") && it.contains(hash) })
assertTrue(customMessages.all { it.startsWith("CUSTOM TRACE:") })
assertTrue(messages.isEmpty())
}

Expand Down

0 comments on commit 622abbe

Please sign in to comment.