Skip to content

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

Merged
hongalex merged 6 commits intogoogleapis:mainfrom
hongalex:pubsub-test-ordered-keys-flake
Sep 11, 2023
Merged

test(pubsub): dedupe by message data in ordering keys json test#8526
hongalex merged 6 commits intogoogleapis:mainfrom
hongalex:pubsub-test-ordered-keys-flake

Conversation

@hongalex
Copy link
Copy Markdown
Member

@hongalex hongalex commented Sep 5, 2023

Closes #8520

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

@hongalex hongalex requested a review from shollyman as a code owner September 5, 2023 20:45
@hongalex hongalex requested review from a team 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
Copy Markdown
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.

Comment thread pubsub/integration_test.go Outdated
_, 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
Copy Markdown
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 thread pubsub/integration_test.go Outdated
Comment on lines +23 to +24
"io/ioutil"
"log"
Copy link
Copy Markdown
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
@hongalex hongalex deleted the pubsub-test-ordered-keys-flake branch December 10, 2025 20:59
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