<Wiremock stub mappings missing after switching th...
# stackoverflow
r
Wiremock stub mappings missing after switching thread in asynchronous invocation I'm writing integration test using Wiremock, in Kotlin and Micronaut. I have endpoint that do some logic, then it runs async function (and return 202), like this: @Async open fun asynFunction(): CompletableFuture So whenever I'm using Wiremock without async invocation (also in other endpoints) it works correctly, there are mappings registered and tests are passing. However, whenever code gets into another thread, mappings are gone. GET localhost:3000/__admin/mappings returns: {...