Skip to content

Commit

Permalink
fix: fixed the closed client test (#1138)
Browse files Browse the repository at this point in the history
* fixed the closed client test

* fix: fixed the closed client test
  • Loading branch information
danieljbruce authored Aug 22, 2022
1 parent c88801a commit 7f6f0e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system-test/read-rows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,14 @@ describe('Bigtable/Table', () => {
it('should fail when invoking readRows with closed client', async () => {
const instance = bigtable.instance(INSTANCE_NAME);
const table = instance.table('fake-table');
await instance.create({
const [, operation] = await instance.create({
clusters: {
id: 'fake-cluster3',
location: 'us-west1-c',
nodes: 1,
},
});
await operation.promise();
await table.create({});
await table.getRows(); // This is done to initialize the data client
await bigtable.close();
Expand Down

0 comments on commit 7f6f0e6

Please sign in to comment.