A couple hundred milliseconds cost me an hour, and the annoying part is I'd written the fix for it before I even had the bug.
I was writing a Testcontainers deployment check for a custom Keycloak authenticator — boot a real Keycloak server with the built provider jar dropped into providers/, hit the admin REST API, confirm the provider shows up. First pass, I picked the wait strategy the way you'd expect:
.waitingFor(Wait.forLogMessage(".*Running the server in development mode.*", 1))
Enter fullscreen mode
Exit fullscreen mode






