Skip to content

Commit

Permalink
Remove irrelevant test
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljbruce committed Jun 19, 2024
1 parent e22af7b commit 66e4b5a
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions test/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1173,51 +1173,6 @@ describe('Bigtable/Table', () => {
tableWithRetries.maxRetries = 7;
tableWithRetries.createReadStream();
});
it('should pass custom retry settings to the gapic layer', done => {
const customRetryCodes = [11, 12];
const customBackOffSettings = {
initialRetryDelayMillis: 17,
retryDelayMultiplier: 289,
maxRetryDelayMillis: 60923,
};
const customCanResume = (error: GoogleError) => error.code === 6;
const customGetResumptionRequestFn = (request: RequestType) => {
return {fakeProperty: 19};
};
const retry = new RetryOptions(
[],
customBackOffSettings,
customCanResume,
customGetResumptionRequestFn
);
const expectedOptions = {
otherArgs: {
headers: {
'bigtable-attempt': 0,
},
},
retry,
};
tester.testReadRowsGapicCall(
done,
{
rows: {
rowKeys: [],
rowRanges: [{}],
},
tableName,
},
expectedOptions
);
const tableWithRetries: Table = bigtable
.instance('fake-instance')
.table('fake-table');
tableWithRetries.createReadStream({
gaxOptions: {
retry,
},
});
});
it('should pass gax options and readrows request data to the gapic layer in a complex example', done => {
const gaxOptions = {
timeout: 734,
Expand Down

0 comments on commit 66e4b5a

Please sign in to comment.