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 flaky cancelation integration test #2649

Merged
merged 1 commit into from
Jul 7, 2020

Conversation

marten-seemann
Copy link
Member

When a send stream is canceled (either by the user calling CancelWrite(), or by receiving a STOP_SENDING frame), the Close() method will return an error. This happened occasionally in the cancellation integration test.

On a more general note, I'm not sure if this API makes sense. OTOH, this is the only way for the user to learn that a stream has been canceled if the STOP_SENDING frame is received after the Write() call returned. We should probably include the error code in the error message then. @lucas-clemente, wdyt?

@codecov
Copy link

codecov bot commented Jul 6, 2020

Codecov Report

Merging #2649 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2649   +/-   ##
=======================================
  Coverage   86.37%   86.37%           
=======================================
  Files         122      122           
  Lines        9757     9757           
=======================================
  Hits         8427     8427           
  Misses        995      995           
  Partials      335      335           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d4720e4...b5a3ff0. Read the comment docs.

@marten-seemann marten-seemann merged commit 84bf12b into master Jul 7, 2020
@marten-seemann marten-seemann deleted the fix-flaky-cancelation-test branch July 8, 2020 05:06
@aschmahmann aschmahmann mentioned this pull request Sep 22, 2020
72 tasks
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