Skip to content

only connect to the server once to speed up test JmsIntegrationTest #1405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

TestBoost
Copy link
Contributor

The test class JmsIntegrationTest prepares a configuration and creates a server based on that before every test method. There are two test methods inside JmsIntegrationTest. They do not affect each other and do not change the content of the field server. There are no need to create, start and stop the server before/after every test method.

In our machine, the test runtime can decrease from 7.6168 s to 1.0663 s after applying the changes proposed in this pull request.

@corneil
Copy link
Contributor

corneil commented Apr 10, 2024

Thanks you @TestBoost

@corneil corneil merged commit 3b0a6e9 into spring-projects:main Apr 10, 2024
@corneil corneil added this to the 4.0.11 milestone May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants