Skip to content
This repository was archived by the owner on Jan 18, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,8 @@ describe('v1beta1.EchoClient', () => {
projectId: 'bogus',
});
client.initialize();
const request = generateSampleMessage(new protos.google.showcase.v1beta1.EchoRequest());const expectedError = new Error('expected');
const request = generateSampleMessage(new protos.google.showcase.v1beta1.EchoRequest());
const expectedError = new Error('expected');
client.innerApiCalls.chat = stubBidiStreamingCall(undefined, expectedError);
const stream = client.chat();
const promise = new Promise((resolve, reject) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,8 @@ describe('v1beta1.MessagingClient', () => {
projectId: 'bogus',
});
client.initialize();
const request = generateSampleMessage(new protos.google.showcase.v1beta1.ConnectRequest());const expectedError = new Error('expected');
const request = generateSampleMessage(new protos.google.showcase.v1beta1.ConnectRequest());
const expectedError = new Error('expected');
client.innerApiCalls.connect = stubBidiStreamingCall(undefined, expectedError);
const stream = client.connect();
const promise = new Promise((resolve, reject) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,8 @@ describe('v1beta1.EchoClient', () => {
projectId: 'bogus',
});
client.initialize();
const request = generateSampleMessage(new protos.google.showcase.v1beta1.EchoRequest());const expectedError = new Error('expected');
const request = generateSampleMessage(new protos.google.showcase.v1beta1.EchoRequest());
const expectedError = new Error('expected');
client.innerApiCalls.chat = stubBidiStreamingCall(undefined, expectedError);
const stream = client.chat();
const promise = new Promise((resolve, reject) => {
Expand Down
3 changes: 2 additions & 1 deletion baselines/showcase/test/gapic_echo_v1beta1.ts.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,8 @@ describe('v1beta1.EchoClient', () => {
projectId: 'bogus',
});
client.initialize();
const request = generateSampleMessage(new protos.google.showcase.v1beta1.EchoRequest());const expectedError = new Error('expected');
const request = generateSampleMessage(new protos.google.showcase.v1beta1.EchoRequest());
const expectedError = new Error('expected');
client.innerApiCalls.chat = stubBidiStreamingCall(undefined, expectedError);
const stream = client.chat();
const promise = new Promise((resolve, reject) => {
Expand Down
3 changes: 2 additions & 1 deletion baselines/showcase/test/gapic_messaging_v1beta1.ts.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,8 @@ describe('v1beta1.MessagingClient', () => {
projectId: 'bogus',
});
client.initialize();
const request = generateSampleMessage(new protos.google.showcase.v1beta1.ConnectRequest());const expectedError = new Error('expected');
const request = generateSampleMessage(new protos.google.showcase.v1beta1.ConnectRequest());
const expectedError = new Error('expected');
client.innerApiCalls.connect = stubBidiStreamingCall(undefined, expectedError);
const stream = client.connect();
const promise = new Promise((resolve, reject) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => {
const stub = sinon.stub(client, 'warn');
{%- endif %}
client.{{ id.get("initialize") }}();
{{ util.initRequestWithHeaderParam(method) -}}
const request = generateSampleMessage(new protos{{ method.inputInterface }}());
const expectedError = new Error('expected');
client.innerApiCalls.{{ method.name.toCamelCase() }} = stubBidiStreamingCall(undefined, expectedError);
const stream = client.{{ method.name.toCamelCase() }}();
Expand Down