Skip to content

Commit

Permalink
mock server test is hanging
Browse files Browse the repository at this point in the history
Adding .only to the test because for some reason right now the test only completes when run in isolation.
  • Loading branch information
danieljbruce committed May 17, 2023
1 parent 240ae08 commit 907c32f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ describe('Bigtable/Streams', () => {
call.write(createResponse(rowId++));
}

if (rowId < 300) {
if (rowId < 30000) {
setTimeout(sendNextRow, 10);
} else {
call.end();
Expand All @@ -143,7 +143,7 @@ describe('Bigtable/Streams', () => {
sendNextRow();
};

it('should finish delivering all the data to the user', async () => {
it.only('should finish delivering all the data to the user', async () => {
rowCount = 0;
const instance = bigtable.instance('fake-instance');
const table = instance.table('fake-table');
Expand All @@ -160,7 +160,7 @@ describe('Bigtable/Streams', () => {
}
});
});
assert.strictEqual(rowCount, 300);
assert.strictEqual(rowCount, 30000);
});
});
});
Expand Down

0 comments on commit 907c32f

Please sign in to comment.