Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed Oct 25, 2024
1 parent b971932 commit 448a2cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/source/pubsub/pubsub_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ type Configuration struct {
ConcurrentWrites int `hcl:"concurrent_writes,optional"`
MaxOutstandingMessages int `hcl:"max_outstanding_messages,optional"`
MaxOutstandingBytes int `hcl:"max_outstanding_bytes,optional"`
minExtensionPeriodSeconds int `hcl:"min_extension_period_seconds"`
streamingPullGoRoutines int `hcl:"streaming_pull_goroutines"`
minExtensionPeriodSeconds int `hcl:"min_extension_period_seconds,optional"`
streamingPullGoRoutines int `hcl:"streaming_pull_goroutines,optional"`
}

// pubSubSource holds a new client for reading messages from PubSub
Expand Down
4 changes: 4 additions & 0 deletions pkg/source/pubsub/pubsub_source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ package pubsubsource

import (
"context"
"fmt"
"os"
"path/filepath"
"sort"
Expand Down Expand Up @@ -82,6 +83,9 @@ func TestPubSubSource_ReadAndReturnSuccessIntegration(t *testing.T) {

assert.NotNil(pubsubSource)
assert.Nil(err)
if err != nil {
fmt.Println(err.Error())
}
assert.Equal("projects/project-test/subscriptions/test-sub", pubsubSource.GetID())

output := testutil.ReadAndReturnMessages(pubsubSource, 5*time.Second, testutil.DefaultTestWriteBuilder, nil)
Expand Down

0 comments on commit 448a2cf

Please sign in to comment.