You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding Queues
when the queue does not already exist
should error on addQueue in passive mode:
AssertionError: expected 'Error: Failed to create queue 'no-qu…' to include 'Failed to create queue 'no-queue-her…'
at /home/runner/work/foo-foo-mq/foo-foo-mq/spec/integration/addPassiveQueue.spec.js:2:940
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Bad Connection
when attempting a connection
should fail to connect:
TypeError: Cannot read properties of undefined (reading 'should')
at Context. (spec/integration/badConnection.spec.js:2:1022)
at process.processImmediate (node:internal/timers:476:21)
Bad Connection
when attempting a uri connection with an invalid password
should fail to connect:
TypeError: Cannot read properties of undefined (reading 'should')
at Context. (spec/integration/badConnection.spec.js:2:2046)
at process.processImmediate (node:internal/timers:476:21)
The text was updated successfully, but these errors were encountered:
@zlintz there is some type of race condition when running the spec/integration tests. I have a separate branch where I rewrote the project in ESM with amqplib: ~0.10.3 and am seeing the same problem. Once you run the tests one by one, they all pass.
Steps should be taken to rewrite the setup and teardown parts to avoid this. As of now, there is a single spec/setup.js that is imported in every test case that provides globals, which is an outdated and ill-advised pattern. I am pretty sure this is where the problem lies.
See the discussion here #16 for context.
In src/connectionFsm.js there is a todo to figure out why the commented out code is causing test failures. It
Failures seen here:
https://github.com/Foo-Foo-MQ/foo-foo-mq/actions/runs/7660491629/job/20877897843#step:8:423
222 passing (14s)
3 failing
Adding Queues
when the queue does not already exist
should error on addQueue in passive mode:
AssertionError: expected 'Error: Failed to create queue 'no-qu…' to include 'Failed to create queue 'no-queue-her…'
at /home/runner/work/foo-foo-mq/foo-foo-mq/spec/integration/addPassiveQueue.spec.js:2:940
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Bad Connection
when attempting a connection
should fail to connect:
TypeError: Cannot read properties of undefined (reading 'should')
at Context. (spec/integration/badConnection.spec.js:2:1022)
at process.processImmediate (node:internal/timers:476:21)
Bad Connection
when attempting a uri connection with an invalid password
should fail to connect:
TypeError: Cannot read properties of undefined (reading 'should')
at Context. (spec/integration/badConnection.spec.js:2:2046)
at process.processImmediate (node:internal/timers:476:21)
The text was updated successfully, but these errors were encountered: