Closed sberyozkin closed 3 years ago
/cc @stuartwdouglas
QuarkusTestResourceLifecycleManager is run before Quarkus starts, so Quarkus has not had a chance to set the launch mode.
That said given that this is only used in testing I don't think this is a bug, as you already know the launch mode is test.
Describe the bug
LaunchMode.TEST
is reported asLaunchMode.current()
in theDevServices
processor code (ex,KeycloakDevServicesProcessor
) whileLaunchMode.NORMAL
is seen inQuarkusTestResourceLifecycleManager
after starting Quarkus withquarkus:dev
and pressingr
to run the tests.I've noticed it when trying to fix #19608 - I'd like to make sure that when a test container is started by
DevServices for Keycloak
afterr
is pressed (in addition to the one it starts for the dev services work) then the tests typed to useKeycloakTestResourceLifecycleManager
reuse that test containerCC @stuartwdouglas
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response