Skip to content
Draft
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
2 changes: 1 addition & 1 deletion handwritten/bigtable/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ steps:
args:
- '-c'
- |
cd ../.. && corepack enable pnpm && pnpm install --filter "...{./handwritten/bigtable}"
cd ../.. && corepack enable pnpm && pnpm install --filter "./core/test-utils" --filter "...{./handwritten/bigtable}" --ignore-scripts && pnpm --dir core/test-utils run compile && node -e "require('./bin/run-test.cjs').ensureWorkspacePackagesLinked()" && pnpm --filter "...{./handwritten/bigtable}" run prepare --if-present
dir: 'handwritten/bigtable'
id: 'install-dependencies'

Expand Down
3 changes: 2 additions & 1 deletion handwritten/bigtable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"presystem-test": "pnpm run compile",
"system-test": "node ../../bin/run-test.cjs build/system-test --timeout 600000 --retries 3",
"pretest": "pnpm run compile",
"test": "node ../../bin/run-test.cjs --proxyquire-shim build/test",
"test": "node ../../bin/run-test.cjs build/test",
"test:snap": "SNAPSHOT_UPDATE=1 pnpm test",
"testproxy": "pnpm run compile && node build/testproxy/index.js",
"clean": "gts clean",
Expand Down Expand Up @@ -93,6 +93,7 @@
"c8": "^10.1.3",
"codecov": "^3.8.3",
"gapic-tools": "^2.0.0",
"google-test-utils": "^0.3.0",
"gts": "^6.0.2",
"jsdoc": "^4.0.4",
"jsdoc-fresh": "^6.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
import {ResourceMetrics} from '@opentelemetry/sdk-metrics';
import * as assert from 'assert';
import {GCPMetricsHandler} from '../src/client-side-metrics/gcp-metrics-handler';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {Bigtable, RawFilter} from '../src';
import {Mutation} from '../src/mutation';
import {Row} from '../src/row';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/system-test/client-side-metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
import {ResourceMetrics} from '@opentelemetry/sdk-metrics';
import * as assert from 'assert';
import {GCPMetricsHandler} from '../src/client-side-metrics/gcp-metrics-handler';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {Bigtable, BigtableOptions} from '../src';
import {Row} from '../src/row';
import {
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/system-test/gcp-metrics-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {Bigtable} from '../src';
import {ResourceMetrics} from '@opentelemetry/sdk-metrics';
import * as assert from 'assert';
import {ClientOptions} from 'google-gax';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';

function getHandler(Exporter: typeof CloudMonitoringExporter) {
const FakeCGPMetricsHandler = proxyquire(
Expand Down
7 changes: 5 additions & 2 deletions handwritten/bigtable/system-test/read-rows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {EventEmitter} from 'events';
import {Test} from './testTypes';
import {ServiceError, GrpcClient, GoogleError, CallOptions} from 'google-gax';
import {PassThrough} from 'stream';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {TabularApiSurface} from '../src/tabular-api-surface';
import * as mocha from 'mocha';
import {generateId} from './common';
Expand Down Expand Up @@ -141,7 +141,10 @@ describe('Bigtable/Table', () => {
'An error should have been thrown because the client is closed',
);
} catch (err: any) {
assert.strictEqual(err.message, 'The client has already been closed.');
assert.strictEqual(
err.message,
'The client has already been closed.',
);
}
} finally {
const bigtableSecondClient = new Bigtable();
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/app-profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {describe, it, before, beforeEach} from 'mocha';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {CallOptions} from 'google-gax';

let promisified = false;
Expand Down Expand Up @@ -48,7 +48,7 @@
// eslint-disable-next-line @typescript-eslint/no-explicit-any
id: any;
name: string;
bigtable: any;

Check warning on line 51 in handwritten/bigtable/test/app-profile.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

Check warning on line 51 in handwritten/bigtable/test/app-profile.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
// eslint-disable-next-line @typescript-eslint/no-explicit-any
constructor(instance: any, id: any) {
this.instance = instance;
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/backup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {before, beforeEach, describe, it, afterEach} from 'mocha';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as pumpify from 'pumpify';
import {ServiceError} from 'google-gax';

Expand Down Expand Up @@ -259,7 +259,7 @@
(
err?: ServiceError | Error | null,
backup?: Backup | null,
config?: any,

Check warning on line 262 in handwritten/bigtable/test/backup.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

Check warning on line 262 in handwritten/bigtable/test/backup.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
) => {
assert.strictEqual(
backup?.name,
Expand Down
1 change: 0 additions & 1 deletion handwritten/bigtable/test/base64keymap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
// limitations under the License.

import * as assert from 'assert';
import {describe, it, before, beforeEach, afterEach} from 'mocha';

Check warning on line 16 in handwritten/bigtable/test/base64keymap.ts

View workflow job for this annotation

GitHub Actions / lint

'afterEach' is defined but never used

Check warning on line 16 in handwritten/bigtable/test/base64keymap.ts

View workflow job for this annotation

GitHub Actions / lint

'beforeEach' is defined but never used

Check warning on line 16 in handwritten/bigtable/test/base64keymap.ts

View workflow job for this annotation

GitHub Actions / lint

'before' is defined but never used

Check warning on line 16 in handwritten/bigtable/test/base64keymap.ts

View workflow job for this annotation

GitHub Actions / lint

'afterEach' is defined but never used

Check warning on line 16 in handwritten/bigtable/test/base64keymap.ts

View workflow job for this annotation

GitHub Actions / lint

'beforeEach' is defined but never used

Check warning on line 16 in handwritten/bigtable/test/base64keymap.ts

View workflow job for this annotation

GitHub Actions / lint

'before' is defined but never used
import Long = require('long');

Check warning on line 17 in handwritten/bigtable/test/base64keymap.ts

View workflow job for this annotation

GitHub Actions / lint

'Long' is defined but never used

Check warning on line 17 in handwritten/bigtable/test/base64keymap.ts

View workflow job for this annotation

GitHub Actions / lint

'Long' is defined but never used
import * as proxyquire from 'proxyquire';
import * as sn from 'sinon';

Check warning on line 18 in handwritten/bigtable/test/base64keymap.ts

View workflow job for this annotation

GitHub Actions / lint

'sn' is defined but never used

Check warning on line 18 in handwritten/bigtable/test/base64keymap.ts

View workflow job for this annotation

GitHub Actions / lint

'sn' is defined but never used

import {RowStateEnum} from '../src/chunktransformer.js';
import {Mutation} from '../src/mutation.js';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/chunktransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as assert from 'assert';
import {describe, it, before, beforeEach, afterEach} from 'mocha';
import Long = require('long');
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sn from 'sinon';

import {RowStateEnum} from '../src/chunktransformer.js';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {before, beforeEach, describe, it} from 'mocha';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {PassThrough, Readable} from 'stream';
import {CallOptions} from 'google-gax';
import {PreciseDate} from '@google-cloud/precise-date';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/executequery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {before, beforeEach, afterEach, describe, it} from 'mocha';
import * as sinon from 'sinon';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {grpc} from 'google-gax';
import * as inst from '../src/instance';
import {Bigtable} from '../src';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/family.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {before, beforeEach, afterEach, describe, it} from 'mocha';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sinon from 'sinon';
import {protos} from '@google-cloud/bigtable-api';
import google = protos.google;
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import * as assert from 'assert';
import {afterEach, before, beforeEach, describe, it} from 'mocha';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sinon from 'sinon';
import * as fr from '../src/filter';
import {Row} from '../src/row';
Expand Down
3 changes: 2 additions & 1 deletion handwritten/bigtable/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {afterEach, before, beforeEach, describe, it} from 'mocha';
import * as gax from 'google-gax';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sn from 'sinon';

import {Cluster} from '../src/cluster.js';
Expand Down Expand Up @@ -1216,6 +1216,7 @@ describe('Bigtable', () => {
});
describe('close', () => {
it('should have failed request after close is called', done => {
// eslint-disable-next-line promise/catch-or-return, promise/always-return
bigtable.close().then(() => {
bigtable.getInstances((err: Error) => {
if (err) {
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {before, beforeEach, afterEach, describe, it} from 'mocha';
import * as sinon from 'sinon';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {ServiceError} from 'google-gax';
import * as snapshot from 'snap-shot-it';
import {Readable} from 'stream';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {ClientOptions, grpc} from 'google-gax';
import * as assert from 'assert';
import {MetricServiceClient} from '@google-cloud/monitoring';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
} from '../../test-common/expected-otel-export-input';
import * as assert from 'assert';
import {replaceTimestamps} from '../../test-common/replace-timestamps';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';

/**
* Cleans a ResourceMetrics object by replacing client UUIDs with a placeholder.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
import {grpc} from 'google-gax';
import {expectedRequestsHandled} from '../../test-common/metrics-handler-fixture';
import * as gax from 'google-gax';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {GCPMetricsHandler} from '../../src/client-side-metrics/gcp-metrics-handler';
import {getProtoPath} from '../../src/utils/protos';
const protoPath = getProtoPath('google/bigtable/v2/response_params.proto');
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/row.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {afterEach, beforeEach, describe, it} from 'mocha';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sinon from 'sinon';
import {Mutation} from '../src/mutation.js';
import * as rw from '../src/row';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/bigtable/test/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as promisify from '@google-cloud/promisify';
import * as assert from 'assert';
import {afterEach, before, beforeEach, describe, it} from 'mocha';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as pumpify from 'pumpify';
import * as sinon from 'sinon';
import {PassThrough, Writable, Duplex} from 'stream';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/spanner/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ steps:
args:
- '-c'
- |
cd ../.. && corepack enable pnpm && pnpm install --filter "...{./handwritten/spanner}"
cd ../.. && corepack enable pnpm && pnpm install --filter "./core/test-utils" --filter "...{./handwritten/spanner}" --ignore-scripts && pnpm --dir core/test-utils run compile && node -e "require('./bin/run-test.cjs').ensureWorkspacePackagesLinked()" && pnpm --filter "...{./handwritten/spanner}" run prepare --if-present
dir: 'handwritten/spanner'
id: 'install-dependencies'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import * as pfy from '@google-cloud/promisify';
import * as assert from 'assert';
import {before, after, beforeEach, afterEach, describe, it} from 'mocha';
import * as extend from 'extend';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sinon from 'sinon';
const {
AlwaysOnSampler,
Expand Down
2 changes: 1 addition & 1 deletion handwritten/spanner/observability-test/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
} from '../src/transaction';
import {util} from '@google-cloud/common';
import {Transform} from 'stream';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sinon from 'sinon';
const {SpanStatusCode} = require('@opentelemetry/api');
const {
Expand Down
1 change: 1 addition & 0 deletions handwritten/spanner/observability-test/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const cacheSessionEvents = ['Cache hit: has usable multiplexed session'];
* and referring to context causes type/value collision errors.
*/
export function setGlobalContextManager(manager: ContextManager) {
context.disable();
if (typeof manager.enable === 'function') {
manager.enable();
}
Expand Down
1 change: 1 addition & 0 deletions handwritten/spanner/observability-test/spanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ describe('EndToEnd', async () => {
const database = instance.database('database');

beforeEach(async () => {
setGlobalContextManager(contextManager);
// To deflake expectations of session creation, let's
// issue out a warm-up request request that'll ensure
// that the MultiplexedSession is created deterministically.
Expand Down
2 changes: 1 addition & 1 deletion handwritten/spanner/observability-test/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import * as pfy from '@google-cloud/promisify';
import * as assert from 'assert';
import {before, beforeEach, afterEach, describe, it} from 'mocha';
import * as extend from 'extend';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sinon from 'sinon';
import * as through from 'through2';

Expand Down
2 changes: 1 addition & 1 deletion handwritten/spanner/observability-test/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import * as assert from 'assert';
import {before, beforeEach, afterEach, describe, it} from 'mocha';
import {EventEmitter} from 'events';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sinon from 'sinon';

import {codec} from '../src/codec';
Expand Down
6 changes: 3 additions & 3 deletions handwritten/spanner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
"predocs": "pnpm run compile",
"lint": "gts check",
"system-test": "node ../../bin/run-test.cjs build/system-test --timeout 1600000",
"observability-test": "node ../../bin/run-test.cjs --proxyquire-shim build/observability-test --timeout 1600000",
"observability-test": "node ../../bin/run-test.cjs build/observability-test --timeout 1600000",
"cleanup": "node ../../bin/run-test.cjs scripts/cleanup.js --timeout 30000",
"test": "node ../../bin/run-test.cjs --proxyquire-shim build/test build/test/common build/observability-test",
"test": "node ../../bin/run-test.cjs build/test build/test/common build/observability-test",
"ycsb": "node ./benchmark/ycsb.js run -P ./benchmark/workloada -p table=usertable -p cloudspanner.instance=ycsb-instance -p operationcount=100 -p cloudspanner.database=ycsb",
"fix": "gts fix",
"clean": "gts clean",
Expand Down Expand Up @@ -107,7 +107,7 @@
"dedent": "^1.5.3",
"execa": "^5.0.0",
"gapic-tools": "^2.0.0",
"google-test-utils": "^0.2.0",
"google-test-utils": "^0.3.0",
"grpc-health-check": "^2.1.0",
"gts": "^6.0.2",
"jsdoc": "^4.0.4",
Expand Down
2 changes: 1 addition & 1 deletion handwritten/spanner/test/backup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import * as assert from 'assert';
import {EventEmitter} from 'events';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sinon from 'sinon';
import {util} from '@google-cloud/common';
import * as pfy from '@google-cloud/promisify';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/spanner/test/batch-transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {util} from '@google-cloud/common';
import * as pfy from '@google-cloud/promisify';
import * as assert from 'assert';
import {before, beforeEach, afterEach, describe, it} from 'mocha';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sinon from 'sinon';

import {Session, Database, Spanner, protos} from '../src';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/spanner/test/common/service-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import * as pfy from '@google-cloud/promisify';
import * as assert from 'assert';
import {before, beforeEach, describe, it} from 'mocha';
import * as extend from 'extend';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';

let promisified = false;
const fakePfy = Object.assign({}, pfy, {
Expand Down
2 changes: 1 addition & 1 deletion handwritten/spanner/test/common/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {before, beforeEach, after, afterEach, describe, it} from 'mocha';
import * as duplexify from 'duplexify';
import * as extend from 'extend';
import {grpc, GrpcClient} from 'google-gax';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as retryRequest from 'retry-request';
import * as sn from 'sinon';
import {PassThrough} from 'stream';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/spanner/test/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {before, beforeEach, afterEach, describe, it} from 'mocha';
import {EventEmitter} from 'events';
import * as extend from 'extend';
import {ApiError, util} from '@google-cloud/common';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as sinon from 'sinon';
import {Transform, Duplex} from 'stream';
import * as through from 'through2';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/spanner/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import * as assert from 'assert';
import {before, beforeEach, afterEach, describe, it} from 'mocha';
import * as extend from 'extend';
import * as path from 'path';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as through from 'through2';
import {util} from '@google-cloud/common';
import {PreciseDate} from '@google-cloud/precise-date';
Expand Down
2 changes: 1 addition & 1 deletion handwritten/spanner/test/instance-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import * as assert from 'assert';
import {before, beforeEach, afterEach, describe, it} from 'mocha';
import {grpc} from 'google-gax';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as pfy from '@google-cloud/promisify';
import * as sinon from 'sinon';

Expand Down
2 changes: 1 addition & 1 deletion handwritten/spanner/test/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import * as assert from 'assert';
import {before, beforeEach, afterEach, describe, it} from 'mocha';
import {ApiError} from '@google-cloud/common';
import {grpc} from 'google-gax';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import * as pfy from '@google-cloud/promisify';
import * as sinon from 'sinon';
import snakeCase = require('lodash.snakecase');
Expand Down
3 changes: 1 addition & 2 deletions handwritten/spanner/test/partial-result-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {before, beforeEach, afterEach, describe, it} from 'mocha';
// eslint-disable-next-line @typescript-eslint/no-var-requires
// eslint-disable-next-line @typescript-eslint/no-var-requires
const concat = require('concat-stream');
import * as proxyquire from 'proxyquire';
import * as sinon from 'sinon';
import {Transform, finished} from 'stream';
import * as through from 'through2';
Expand All @@ -28,7 +27,7 @@ import {codec} from '../src/codec';
import {PreciseDate} from '@google-cloud/precise-date';
import * as prs from '../src/partial-result-stream';
import {grpc} from 'google-gax';
import {assertArraySubclassStrictEqual} from 'google-test-utils';
import {assertArraySubclassStrictEqual, proxyquire} from 'google-test-utils';
import {Row} from '../src/partial-result-stream';

function toRawValue(value: any): any {
Expand Down
2 changes: 1 addition & 1 deletion handwritten/spanner/test/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import * as pfy from '@google-cloud/promisify';
import * as assert from 'assert';
import {before, beforeEach, describe, it} from 'mocha';
import * as proxyquire from 'proxyquire';
import {proxyquire} from 'google-test-utils';
import {
CLOUD_RESOURCE_HEADER,
LEADER_AWARE_ROUTING_HEADER,
Expand Down
Loading
Loading