Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix checking for pending requests in an infinite loop WIP #1703

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

added failing test to prove issue

688261c
Select commit
Loading
Failed to load commit list.
Open

fix checking for pending requests in an infinite loop WIP #1703

added failing test to prove issue
688261c
Select commit
Loading
Failed to load commit list.
Azure Pipelines / tulios.kafkajs failed Jul 3, 2024 in 5m 1s

Build #20240703.2 had test failures

Details

Tests

  • Failed: 1 (0.08%)
  • Passed: 1,311 (99.09%)
  • Other: 11 (0.83%)
  • Total: 1,323

Annotations

Check failure on line 413 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / tulios.kafkajs

Build log #L413

Bash exited with code '1'.

Check failure on line 1 in Network > RequestQueue #fulfillRequest does not start checking for pending requests needlessly (in an infinite loop)

See this annotation in the file changed.

@azure-pipelines azure-pipelines / tulios.kafkajs

Network > RequestQueue #fulfillRequest does not start checking for pending requests needlessly (in an infinite loop)

Test failed
Raw output
Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)

Expected number of calls: 1
Received number of calls: 694
    at Object.<anonymous> (/home/vsts/work/1/s/src/network/requestQueue/index.spec.js:284:36)
    at runNextTicks (internal/process/task_queues.js:60:5)
    at processTimers (internal/timers.js:497:9)
    at _runTest (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:140:3)
    at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:74:7)
    at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:80:5)
    at _runTestsForDescribeBlock (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:80:5)
    at run (/home/vsts/work/1/s/node_modules/jest-circus/build/run.js:23:3)
    at runAndTransformResultsToJestFormat (/home/vsts/work/1/s/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:177:21)
    at jestAdapter (/home/vsts/work/1/s/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:123:19)