quarkiverse/quarkus-openapi-generator

Use dynamic port where possible in tests that use WireMock

Closed this issue ยท 2 comments

There are a few tests that instantiate a WireMockServer with a fixed port, like:

We should replace it with new WireMockServer(WireMockConfiguration.wireMockConfig().dynamicPort()) always as possible to avoid flaky tests.

Hi @hbelmiro how are you ?

I was wondering if I could handle this one :)

Is it OK for you?

Hi @dritoferro fell free to take it and send a PR to the repo. :)
Thanks!!