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

Fix subscriptions messaging and tests #845

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

smyrick
Copy link
Contributor

@smyrick smyrick commented Aug 23, 2020

📝 Description

When updating to the latest spring boot version our subscription tests are failing. I can reproduce this with just the jump to Spring Boot 2.2.7.

The issue is that the StepVerifiers do not complete the publisher so the test stays running in the background and never completes. I have re-worked how to capture the published events in the tests, as well as fixed a bug in the subscription code that was not sending the COMPLETE event. However this still hangs when we are trying to process multiple events.

The line here, using toMono stop the publisher after just one event which is why it fails when attempting to check the second message. However after using toFlux the test never completes. If I manually stop it the test has actually passed as all the data was present and completed, but the test is still waiting.

If someone else can help investigate or knows the Reactor methods better than I do, it would be very helpful to figure what we have to do in these integration tests. The code outside integration tests looks good.

Screen Shot 2020-08-22 at 7 19 22 PM

🔗 Related Issues

#835

@smyrick smyrick added type: bug Something isn't working changes: patch Changes require a patch version labels Aug 23, 2020
gradle.properties Outdated Show resolved Hide resolved
Working test publishers with mono, not flux

Trigger complete call on server complete message

Fix linter

Undo changes from PR

Update linter

Update bean usage of data loader tests

Update spring and spring boot version

Fix example tests
@smyrick smyrick marked this pull request as ready for review August 31, 2020 23:31
@smyrick smyrick merged commit a86c451 into ExpediaGroup:master Sep 1, 2020
@smyrick smyrick deleted the subscriptions-tests branch September 1, 2020 01:08
huehnerlady pushed a commit to huehnerlady/graphql-kotlin that referenced this pull request Oct 16, 2020
Working test publishers with mono, not flux

Trigger complete call on server complete message

Fix linter

Undo changes from PR

Update linter

Update bean usage of data loader tests

Update spring and spring boot version

Fix example tests

Co-authored-by: Shane Myrick <accounts@shanemyrick.com>
dariuszkuc pushed a commit to dariuszkuc/graphql-kotlin that referenced this pull request Aug 5, 2022
Working test publishers with mono, not flux

Trigger complete call on server complete message

Fix linter

Undo changes from PR

Update linter

Update bean usage of data loader tests

Update spring and spring boot version

Fix example tests

Co-authored-by: Shane Myrick <accounts@shanemyrick.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes: patch Changes require a patch version type: bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants