Skip to content

cleanup(pubsub): fix broken tests#4647

Merged
suzmue merged 1 commit intogoogleapis:mainfrom
suzmue:nits
Feb 10, 2026
Merged

cleanup(pubsub): fix broken tests#4647
suzmue merged 1 commit intogoogleapis:mainfrom
suzmue:nits

Conversation

@suzmue
Copy link
Copy Markdown
Collaborator

@suzmue suzmue commented Feb 10, 2026

The PR that added this test was incorrectly merged and used the stale name for Message. This also fixes a potential source of flakiness where the timer for a batch fires before the task is aborted.

@suzmue suzmue requested a review from a team as a code owner February 10, 2026 17:30
@product-auto-label product-auto-label bot added the api: pubsub Issues related to the Pub/Sub API. label Feb 10, 2026
Copy link
Copy Markdown
Member

@dbolduc dbolduc left a comment

Choose a reason for hiding this comment

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

nit: PR title? maybe: cleanup(pubsub): avoid timing in test

@suzmue suzmue changed the title cleanup(pubsub): fix broken tests cleanup(pubsub): avoid timing in test Feb 10, 2026
@suzmue
Copy link
Copy Markdown
Collaborator Author

suzmue commented Feb 10, 2026

nit: PR title? maybe: cleanup(pubsub): avoid timing in test

Yeah I had something similar to that at first but it also importantly uses the correct name for Message now so went more general.

Thank you for quick review!

@suzmue suzmue enabled auto-merge (squash) February 10, 2026 17:35
@dbolduc
Copy link
Copy Markdown
Member

dbolduc commented Feb 10, 2026

uses the correct name for Message

Oh duh. You're right. The original title was good. I somehow missed that.

@suzmue suzmue disabled auto-merge February 10, 2026 17:40
@suzmue suzmue changed the title cleanup(pubsub): avoid timing in test cleanup(pubsub): fix broken tests Feb 10, 2026
@suzmue suzmue enabled auto-merge (squash) February 10, 2026 17:41
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.02%. Comparing base (8375ba1) to head (e006dbf).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4647   +/-   ##
=======================================
  Coverage   95.02%   95.02%           
=======================================
  Files         195      195           
  Lines        7473     7477    +4     
=======================================
+ Hits         7101     7105    +4     
  Misses        372      372           

☔ 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.

@suzmue suzmue merged commit 7a2d7ff into googleapis:main Feb 10, 2026
34 checks passed
@suzmue suzmue deleted the nits branch February 10, 2026 18:23
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