Skip to content

Commit

Permalink
fix: disable retry-request for stream closed test (#1421)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster committed Aug 7, 2023
1 parent 8a0f6f9 commit 2a35f78
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ describe('v1beta1.BigQueryStorageClient', () => {
request.readPosition.stream.name = defaultValue1;
const expectedError = new Error('The client has already been closed.');
client.close();
const stream = client.readRows(request);
const stream = client.readRows(request, {retryRequestOptions: {noResponseRetries: 0}});
const promise = new Promise((resolve, reject) => {
stream.on('data', (response: protos.google.cloud.bigquery.storage.v1beta1.ReadRowsResponse) => {
resolve(response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ describe('v1beta1.EchoClient', () => {
);
const expectedError = new Error('The client has already been closed.');
client.close();
const stream = client.expand(request);
const stream = client.expand(request, {retryRequestOptions: {noResponseRetries: 0}});
const promise = new Promise((resolve, reject) => {
stream.on('data', (response: protos.google.showcase.v1beta1.EchoResponse) => {
resolve(response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ describe('v1beta1.MessagingClient', () => {
request.name = defaultValue1;
const expectedError = new Error('The client has already been closed.');
client.close();
const stream = client.streamBlurbs(request);
const stream = client.streamBlurbs(request, {retryRequestOptions: {noResponseRetries: 0}});
const promise = new Promise((resolve, reject) => {
stream.on('data', (response: protos.google.showcase.v1beta1.StreamBlurbsResponse) => {
resolve(response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ describe('v1beta1.EchoClient', () => {
);
const expectedError = new Error('The client has already been closed.');
client.close();
const stream = client.expand(request);
const stream = client.expand(request, {retryRequestOptions: {noResponseRetries: 0}});
const promise = new Promise((resolve, reject) => {
stream.on('data', (response: protos.google.showcase.v1beta1.EchoResponse) => {
resolve(response);
Expand Down
2 changes: 1 addition & 1 deletion baselines/showcase/test/gapic_echo_v1beta1.ts.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ describe('v1beta1.EchoClient', () => {
);
const expectedError = new Error('The client has already been closed.');
client.close();
const stream = client.expand(request);
const stream = client.expand(request, {retryRequestOptions: {noResponseRetries: 0}});
const promise = new Promise((resolve, reject) => {
stream.on('data', (response: protos.google.showcase.v1beta1.EchoResponse) => {
resolve(response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ describe('v1beta1.MessagingClient', () => {
request.name = defaultValue1;
const expectedError = new Error('The client has already been closed.');
client.close();
const stream = client.streamBlurbs(request);
const stream = client.streamBlurbs(request, {retryRequestOptions: {noResponseRetries: 0}});
const promise = new Promise((resolve, reject) => {
stream.on('data', (response: protos.google.showcase.v1beta1.StreamBlurbsResponse) => {
resolve(response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ describe('{{ api.naming.version }}.{{ service.name }}Client', () => {
{{ util.initRequestWithHeaderParam(method, skipExpectedVariable='true') }}
const expectedError = new Error('The client has already been closed.');
client.close();
const stream = client.{{ method.name.toCamelCase() }}(request);
const stream = client.{{ method.name.toCamelCase() }}(request, {retryRequestOptions: {noResponseRetries: 0}});
const promise = new Promise((resolve, reject) => {
stream.on('data', (response: protos{{ method.outputInterface }}) => {
resolve(response);
Expand Down

0 comments on commit 2a35f78

Please sign in to comment.