Skip to content

Commit

Permalink
test: fix argument
Browse files Browse the repository at this point in the history
ucpr committed Dec 28, 2023

Verified

This commit was signed with the committer’s verified signature.
ucpr taichi uchihara
1 parent 8ffb747 commit b44f908
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/pubsub/publisher_integration_test.go
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@ import (
"cloud.google.com/go/pubsub"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/ucpr/mongo-streamer/internal/config"
)

//nolint:paralleltest
@@ -18,7 +19,10 @@ func TestPublisher_AsyncPublish(t *testing.T) {

cli, err := pubsub.NewClient(ctx, testProjectID)
require.NoError(t, err)
publisher, err := NewPublisher(ctx, testProjectID, testTopicID)
publisher, err := NewPublisher(ctx, &config.PubSub{
ProjectID: testProjectID,
TopicID: testTopicID,
})
require.NoError(t, err)

type (

0 comments on commit b44f908

Please sign in to comment.