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 #301: QueuedChannel futures don't wait forever when delegates throw #387

Merged
merged 3 commits into from
Feb 20, 2020

Conversation

carterkozak
Copy link
Contributor

Before this PR

futures could never be completed.

After this PR

==COMMIT_MSG==
QueuedChannel futures don't wait forever when delegates throw
==COMMIT_MSG==

verify(delegate, times(2)).maybeExecute(endpoint, queuedRequest);
assertThat(queuedFuture).isNotDone();

futureResponse.set(mockResponse);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would find it helpful to leave little comments explaining what you expect to be happening since just reading the test case requires tracing through the queuedChannel impl to understand why this is testing what it says it is

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call, updated.

@changelog-app
Copy link

changelog-app bot commented Feb 20, 2020

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

QueuedChannel futures don't wait forever when delegates throw

Check the box to generate changelog(s)

  • Generate changelog entry

@ferozco
Copy link
Contributor

ferozco commented Feb 20, 2020

👍

@bulldozer-bot bulldozer-bot bot merged commit 95fde04 into develop Feb 20, 2020
@bulldozer-bot bulldozer-bot bot deleted the ckozak/fix_queue_leak branch February 20, 2020 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants