Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Initialize subscribers for each consumer group #225

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pubsub/tests/test_pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,9 @@ func generateConsumerGroup(t *testing.T, pubSubConstructor ConsumerGroupPubSubCo
// create a pubsub to ensure that the consumer group exists
// for those providers that require subscription before publishing messages (e.g. Google Cloud PubSub)
pub, sub := pubSubConstructor(t, groupName)
if subInitializer, ok := sub.(message.SubscribeInitializer); ok {
require.NoError(t, subInitializer.SubscribeInitialize(topicName))
}
_, err := sub.Subscribe(context.Background(), topicName)
require.NoError(t, err)
closePubSub(t, pub, sub)
Expand Down