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

test(pubsub): dedupe by message data in ordering keys json test #8526

Merged
merged 6 commits into from
Sep 11, 2023

Conversation

hongalex
Copy link
Member

@hongalex hongalex commented Sep 5, 2023

Closes #8520

See comments in above issue for how this PR fixes this test

@hongalex hongalex requested review from shollyman and a team as code owners September 5, 2023 20:45
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: pubsub Issues related to the Pub/Sub API. labels Sep 5, 2023
Copy link
Contributor

@noahdietz noahdietz left a comment

Choose a reason for hiding this comment

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

Just one nit. Approving as admin to unblock failed test resolution.

_, err := r.Get(ctx)
if err != nil {
// Can't fail inside goroutine, so just log the error
log.Printf("publish error for message(%s): %v", msg, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be worth just using the test logger:

Suggested change
log.Printf("publish error for message(%s): %v", msg, err)
t.Logf("publish error for message(%s): %v", msg, err)

Comment on lines 23 to 24
"io/ioutil"
"log"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"io/ioutil"
"log"
"io/ioutil"

Goes with the other change suggested, but feel free to do them in your own single commit

@hongalex hongalex enabled auto-merge (squash) September 11, 2023 20:54
@hongalex hongalex merged commit 84888bf into googleapis:main Sep 11, 2023
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. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pubsub: many tests failed
2 participants