diff --git a/.circleci/config.yml b/.circleci/config.yml index 7a2ec10e..a7deecca 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -115,6 +115,12 @@ workflows: filters: branches: ignore: gh-pages + - tests: + name: 'tests-node-22' + image: 'cimg/node:22.12.0' + filters: + branches: + ignore: gh-pages - coverage: filters: branches: diff --git a/packages/client/test/unit/impl/node/NodeHttpTransport.test.ts b/packages/client/test/unit/impl/node/NodeHttpTransport.test.ts index 34616d87..12b94d42 100644 --- a/packages/client/test/unit/impl/node/NodeHttpTransport.test.ts +++ b/packages/client/test/unit/impl/node/NodeHttpTransport.test.ts @@ -683,7 +683,8 @@ describe('NodeHttpTransport', () => { if (resume) resume() await waitForCondition( () => spy.complete.callCount === 1, - 'response is fully read' + 'response is fully read', + 500 ) expect(spy.next.callCount).is.greaterThan(2) }) diff --git a/packages/client/test/unit/util/waitForCondition.ts b/packages/client/test/unit/util/waitForCondition.ts index fa6697da..369011ec 100644 --- a/packages/client/test/unit/util/waitForCondition.ts +++ b/packages/client/test/unit/util/waitForCondition.ts @@ -3,6 +3,7 @@ * for at most `timeout` milliseconds. The `condition` * every `step` milliseconds. * @param condition - condition to validate + * @param message * @param timeout - maximum wait time * @param step - interval to validate the condition */