Skip to content

Comments

test(pubsub): fail on panics in subscriber#4803

Open
dbolduc wants to merge 1 commit intogoogleapis:mainfrom
dbolduc:test-pubsub-subscriber-no-panics
Open

test(pubsub): fail on panics in subscriber#4803
dbolduc wants to merge 1 commit intogoogleapis:mainfrom
dbolduc:test-pubsub-subscriber-no-panics

Conversation

@dbolduc
Copy link
Member

@dbolduc dbolduc commented Feb 25, 2026

Helps with #4519 and #3975 and #3964

These tests all involve background tasks, none of which should panic.

Credit to @PhongChuong for figuring out how to do this.

@product-auto-label product-auto-label bot added the api: pubsub Issues related to the Pub/Sub API. label Feb 25, 2026
@codecov
Copy link

codecov bot commented Feb 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.01%. Comparing base (7bb7973) to head (b0186ea).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4803      +/-   ##
==========================================
+ Coverage   94.98%   95.01%   +0.02%     
==========================================
  Files         204      204              
  Lines        7877     7877              
==========================================
+ Hits         7482     7484       +2     
+ Misses        395      393       -2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dbolduc dbolduc marked this pull request as ready for review February 25, 2026 00:58
@dbolduc dbolduc requested a review from a team as a code owner February 25, 2026 00:58
Copy link
Collaborator

@coryan coryan left a comment

Choose a reason for hiding this comment

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

AFAICT this makes some tests more strict. Ship it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsub Issues related to the Pub/Sub API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants