Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 7f6f0e6

Browse files
authored
fix: fixed the closed client test (#1138)
* fixed the closed client test * fix: fixed the closed client test
1 parent c88801a commit 7f6f0e6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

system-test/read-rows.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,14 @@ describe('Bigtable/Table', () => {
8888
it('should fail when invoking readRows with closed client', async () => {
8989
const instance = bigtable.instance(INSTANCE_NAME);
9090
const table = instance.table('fake-table');
91-
await instance.create({
91+
const [, operation] = await instance.create({
9292
clusters: {
9393
id: 'fake-cluster3',
9494
location: 'us-west1-c',
9595
nodes: 1,
9696
},
9797
});
98+
await operation.promise();
9899
await table.create({});
99100
await table.getRows(); // This is done to initialize the data client
100101
await bigtable.close();

0 commit comments

Comments
 (0)