Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #21778 #21779 #21780
There are 2 problems with the script tests.
When the Quarkus server is restarted on Windows, it is a chance that some H2 DB transactions, which were commited shortly before the restart, are lost. So for instance when some test (like
DeployedScriptAuthenticatorTest, but can be any other test) importstestrealm, and then restarts server, it is a chance that after restart, thetestrealm is not available. Something about this is described in the H2 documentation http://repository.transtep.com/repository/thirdparty/H2/1.0.63/docs/html/advanced.html#durability_problems . I've added delay 2 seconds on windows before restart the server, which should ensure all the commited transactions should be synced to the diskAll the script tests are doing deploy/undeploy of script archives after every method, which makes them very uneffective and bad for performance as each deploy/undeploy causes server restart. I've changed this to deploy/undeploy once per class (before class and after class).