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

Add a test for canceling resources with a timeout #301

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Feb 28, 2025

When I was answering #261 (comment), I was looking at our implementation of Cancel. I noticed there wasn't a test for this edge case, and added one.

When I was answering
#261 (comment), I was
looking at our implementation of `Cancel`. I noticed there wasn't a test for this edge
case, and added one.
@iwahbe iwahbe requested review from thomas11 and rquitales February 28, 2025 11:34
@iwahbe iwahbe self-assigned this Feb 28, 2025
Copy link

codecov bot commented Feb 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.53%. Comparing base (3726327) to head (85071ed).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #301   +/-   ##
=======================================
  Coverage   68.53%   68.53%           
=======================================
  Files          36       36           
  Lines        4955     4955           
=======================================
  Hits         3396     3396           
  Misses       1291     1291           
  Partials      268      268           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

// Test that a `Cancel` call will cancel in-flight operations, even if they already have a
// timeout associated with them.
//
// Main routine Server routine Cancel routine
Copy link
Contributor

Choose a reason for hiding this comment

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

A+ comment

@iwahbe iwahbe merged commit 857a8e7 into main Feb 28, 2025
8 checks passed
@iwahbe iwahbe deleted the iwahbe/add-cancel-and-timeout-test branch February 28, 2025 13:46
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