Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

fix: test subscription not waiting the specified amount of time #570

Conversation

BlasiusSecundus
Copy link

If numExpectedResponses was 0 or negative, the method did not work according to documentation, it did not wait out the specified amount of time as the condition in await() was fulfilled immediately.

This resulted in waitAndExpectNoResponse and awaitAndGetAllResponses not working as specified in the documentation.

The test suite was also updated to catch this issue in the future.

If numExpectedResponses was 0 or negative, the method did not work
 according to documentation, it did not wait out the specified amount
 of time as the condition in await() was fulfilled immediately.

This resulted in waitAndExpectNoResponse and awaitAndGetAllResponses not
working as specified in the documentation.

The test suite was also updated to catch this issue in the future.
@BlasiusSecundus BlasiusSecundus force-pushed the feature/fix-subscription-test-waiting branch from 556e866 to dfd735c Compare April 3, 2021 12:22
@setchy
Copy link
Member

setchy commented Apr 15, 2021

Thanks @BlasiusSecundus

@setchy setchy merged commit bbf2bc0 into graphql-java-kickstart:master Apr 15, 2021
@setchy setchy added the bug label Apr 26, 2021
@setchy setchy added this to the 11.1.0 milestone Apr 26, 2021
@BlasiusSecundus BlasiusSecundus deleted the feature/fix-subscription-test-waiting branch June 22, 2021 18:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants