Skip to content
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

Tomcat test no wait for afterConnected() done #70

Open
tkruse opened this issue Jul 27, 2016 · 0 comments
Open

Tomcat test no wait for afterConnected() done #70

tkruse opened this issue Jul 27, 2016 · 0 comments

Comments

@tkruse
Copy link

tkruse commented Jul 27, 2016

Hi, great resource.

I ran into a race condition when adapting the IntegrationPortfolioTests. In my case I wanted to connect the client, then trigger a message, then verify that it was received. The race condition caused the trigger to hit the server before the afterConnected() method of the AbstractTestSessionHandler instance had completed, hence before the client was subscribed to the topic. As a consequence, the client never received the triggered message on the topic.

I think it would be nice to enhance the test or document this potential flaw.

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

No branches or pull requests

1 participant