Skip to content

Commit

Permalink
fix: bqstream broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lvrach committed Aug 23, 2024
1 parent 87129ac commit c475544
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/streammanager/bqstream/bqstreammanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func TestInvalidCredentials(t *testing.T) {
_, err = bqstream.NewProducer(&destination, common.Opts{Timeout: 1 * time.Microsecond})

assert.NotNil(t, err)
assert.EqualError(t, err, "bigquery: constructing client: missing 'type' field in credentials")
assert.EqualError(t, err, "bigquery: constructing client: credentials: unsupported filetype '\\x00'")
}

func TestProduceWithInvalidClient(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion services/streammanager/streammanager_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func TestNewProducerWithBQStreamDestination(t *testing.T) {
"project_id": "",
"private_key_id": "",
"private_key": "-----BEGIN PRIVATE KEY----------END PRIVATE KEY-----\n",
"client_email": "",
"client_email": "[email protected]",
"client_id": "",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
Expand Down

0 comments on commit c475544

Please sign in to comment.