Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl committed Aug 10, 2023
1 parent a120377 commit e8ed434
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/readrows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {MockServer} from '../src/util/mock-servers/mock-server';
import {BigtableClientMockService} from '../src/util/mock-servers/service-implementations/bigtable-client-mock-service';
import {MockService} from '../src/util/mock-servers/mock-service';
import {debugLog, readRowsImpl} from './utils/readRowsImpl';
import { UntypedHandleCall } from '@grpc/grpc-js';

describe('Bigtable/ReadRows', () => {
let server: MockServer;
Expand All @@ -47,7 +48,7 @@ describe('Bigtable/ReadRows', () => {
const keyTo = 1000;

service.setService({
ReadRows: readRowsImpl(keyFrom, keyTo),
ReadRows: readRowsImpl(keyFrom, keyTo) as any,
});

let receivedRowCount = 0;
Expand Down Expand Up @@ -79,7 +80,7 @@ describe('Bigtable/ReadRows', () => {
const keyTo = 1000;

service.setService({
ReadRows: readRowsImpl(keyFrom, keyTo),
ReadRows: readRowsImpl(keyFrom, keyTo) as any,
});

let receivedRowCount = 0;
Expand Down Expand Up @@ -132,7 +133,7 @@ describe('Bigtable/ReadRows', () => {
const keyTo = 1000;

service.setService({
ReadRows: readRowsImpl(keyFrom, keyTo),
ReadRows: readRowsImpl(keyFrom, keyTo) as any,
});

let receivedRowCount = 0;
Expand Down Expand Up @@ -185,7 +186,7 @@ describe('Bigtable/ReadRows', () => {
const stopAfter = 42;

service.setService({
ReadRows: readRowsImpl(keyFrom, keyTo),
ReadRows: readRowsImpl(keyFrom, keyTo) as any,
});

let receivedRowCount = 0;
Expand Down Expand Up @@ -234,7 +235,7 @@ describe('Bigtable/ReadRows', () => {
const stopAfter = 420;

service.setService({
ReadRows: readRowsImpl(keyFrom, keyTo),
ReadRows: readRowsImpl(keyFrom, keyTo) as any,
});

let receivedRowCount = 0;
Expand Down Expand Up @@ -297,7 +298,7 @@ describe('Bigtable/ReadRows', () => {
const errorAfterChunkNo = 423;

service.setService({
ReadRows: readRowsImpl(keyFrom, keyTo, errorAfterChunkNo),
ReadRows: readRowsImpl(keyFrom, keyTo, errorAfterChunkNo) as any,
});

let receivedRowCount = 0;
Expand Down

0 comments on commit e8ed434

Please sign in to comment.