add tests for handlers cleanly exiting #1125
Annotations
42 errors and 2 warnings
__tests__/cancellation.test.ts ► clean handler cancellation ('ws' transport, 'naive' codec) > e2e > subscribe:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
AssertionError: [post-test cleanup] server should not have any open streams after the test: expected Map{} to strictly equal Map{}
|
__tests__/cancellation.test.ts ► clean handler cancellation ('ws' transport, 'binary' codec) > e2e > subscribe:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
AssertionError: [post-test cleanup] server should not have any open streams after the test: expected Map{} to strictly equal Map{}
|
__tests__/cleanup.test.ts ► procedures should clean up after themselves ('ws' transport, 'naive' codec) > subscription:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
Error: readNext from a done Readable
|
__tests__/cleanup.test.ts ► procedures should clean up after themselves ('ws' transport, 'binary' codec) > subscription:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
Error: readNext from a done Readable
|
__tests__/disconnects.test.ts ► procedures should handle unexpected disconnects ('ws' transport, 'naive' codec) > subscription:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
Error: readNext from a done Readable
|
__tests__/disconnects.test.ts ► procedures should handle unexpected disconnects ('ws' transport, 'binary' codec) > subscription:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
Error: readNext from a done Readable
|
__tests__/e2e.test.ts ► client <-> server integration test ('ws' transport, 'naive' codec) > subscription:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
Error: readNext from a done Readable
|
__tests__/e2e.test.ts ► client <-> server integration test ('ws' transport, 'naive' codec) > subscription idempotent close:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
Error: readNext from a done Readable
|
__tests__/e2e.test.ts ► client <-> server integration test ('ws' transport, 'binary' codec) > subscription:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
Error: readNext from a done Readable
|
__tests__/e2e.test.ts ► client <-> server integration test ('ws' transport, 'binary' codec) > subscription idempotent close:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
Error: readNext from a done Readable
|
build-and-test (macos-latest)
Failed test were found and 'fail-on-error' option is set to true
|
__tests__/cancellation.test.ts > clean handler cancellation ('ws' transport, 'naive' codec) > e2e > subscribe:
__tests__/fixtures/cleanup.ts#L95
AssertionError: [post-test cleanup] server should not have any open streams after the test: expected Map{} to strictly equal Map{}
- Expected
+ Received
- Map {}
+ Map {
+ "JH0fKt0qe8T4" => Object {
+ "from": "client",
+ "handleMsg": [Function onMessage],
+ "handleSessionDisconnect": [Function handleSessionDisconnect],
+ "procedure": Object {
+ "handler": [Function handler],
+ "requestInit": Object {
+ "properties": Object {},
+ "type": "object",
+ Symbol(TypeBox.Kind): "Object",
+ },
+ "responseData": Object {
+ "properties": Object {},
+ "type": "object",
+ Symbol(TypeBox.Kind): "Object",
+ },
+ "responseError": Object {
+ "not": Object {},
+ Symbol(TypeBox.Kind): "Never",
+ },
+ "type": "subscription",
+ },
+ "procedureName": "subscribe",
+ "serviceName": "service",
+ "sessionMetadata": Object {},
+ "streamId": "JH0fKt0qe8T4",
+ },
+ }
❯ __tests__/fixtures/cleanup.ts:95:7
|
__tests__/cancellation.test.ts > clean handler cancellation ('ws' transport, 'binary' codec) > e2e > subscribe:
__tests__/fixtures/cleanup.ts#L95
AssertionError: [post-test cleanup] server should not have any open streams after the test: expected Map{} to strictly equal Map{}
- Expected
+ Received
- Map {}
+ Map {
+ "eN4v9M44UhFq" => Object {
+ "from": "client",
+ "handleMsg": [Function onMessage],
+ "handleSessionDisconnect": [Function handleSessionDisconnect],
+ "procedure": Object {
+ "handler": [Function handler],
+ "requestInit": Object {
+ "properties": Object {},
+ "type": "object",
+ Symbol(TypeBox.Kind): "Object",
+ },
+ "responseData": Object {
+ "properties": Object {},
+ "type": "object",
+ Symbol(TypeBox.Kind): "Object",
+ },
+ "responseError": Object {
+ "not": Object {},
+ Symbol(TypeBox.Kind): "Never",
+ },
+ "type": "subscription",
+ },
+ "procedureName": "subscribe",
+ "serviceName": "service",
+ "sessionMetadata": Object {},
+ "streamId": "eN4v9M44UhFq",
+ },
+ }
❯ __tests__/fixtures/cleanup.ts:95:7
|
__tests__/cleanup.test.ts > procedures should clean up after themselves ('ws' transport, 'naive' codec) > subscription:
util/testHelpers.ts#L123
Error: readNext from a done Readable
❯ Module.readNextResult util/testHelpers.ts:123:11
❯ __tests__/cleanup.test.ts:342:16
|
__tests__/cleanup.test.ts > procedures should clean up after themselves ('ws' transport, 'binary' codec) > subscription:
util/testHelpers.ts#L123
Error: readNext from a done Readable
❯ Module.readNextResult util/testHelpers.ts:123:11
❯ __tests__/cleanup.test.ts:342:16
|
__tests__/disconnects.test.ts > procedures should handle unexpected disconnects ('ws' transport, 'naive' codec) > subscription:
util/testHelpers.ts#L123
Error: readNext from a done Readable
❯ Module.readNextResult util/testHelpers.ts:123:11
❯ __tests__/disconnects.test.ts:199:16
|
__tests__/disconnects.test.ts > procedures should handle unexpected disconnects ('ws' transport, 'binary' codec) > subscription:
util/testHelpers.ts#L123
Error: readNext from a done Readable
❯ Module.readNextResult util/testHelpers.ts:123:11
❯ __tests__/disconnects.test.ts:199:16
|
__tests__/e2e.test.ts > client <-> server integration test ('ws' transport, 'naive' codec) > subscription:
util/testHelpers.ts#L123
Error: readNext from a done Readable
❯ Module.readNextResult util/testHelpers.ts:123:11
❯ __tests__/e2e.test.ts:394:16
|
__tests__/e2e.test.ts > client <-> server integration test ('ws' transport, 'naive' codec) > subscription idempotent close:
util/testHelpers.ts#L123
Error: readNext from a done Readable
❯ Module.readNextResult util/testHelpers.ts:123:11
❯ __tests__/e2e.test.ts:448:23
|
__tests__/e2e.test.ts > client <-> server integration test ('ws' transport, 'binary' codec) > subscription:
util/testHelpers.ts#L123
Error: readNext from a done Readable
❯ Module.readNextResult util/testHelpers.ts:123:11
❯ __tests__/e2e.test.ts:394:16
|
__tests__/e2e.test.ts > client <-> server integration test ('ws' transport, 'binary' codec) > subscription idempotent close:
util/testHelpers.ts#L123
Error: readNext from a done Readable
❯ Module.readNextResult util/testHelpers.ts:123:11
❯ __tests__/e2e.test.ts:448:23
|
__tests__/cancellation.test.ts ► clean handler cancellation ('ws' transport, 'naive' codec) > e2e > subscribe:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
AssertionError: [post-test cleanup] server should not have any open streams after the test: expected Map{} to strictly equal Map{}
|
__tests__/cancellation.test.ts ► clean handler cancellation ('ws' transport, 'binary' codec) > e2e > subscribe:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
AssertionError: [post-test cleanup] server should not have any open streams after the test: expected Map{} to strictly equal Map{}
|
__tests__/cleanup.test.ts ► procedures should clean up after themselves ('ws' transport, 'naive' codec) > subscription:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
Error: readNext from a done Readable
|
__tests__/cleanup.test.ts ► procedures should clean up after themselves ('ws' transport, 'binary' codec) > subscription:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
Error: readNext from a done Readable
|
__tests__/disconnects.test.ts ► procedures should handle unexpected disconnects ('ws' transport, 'naive' codec) > subscription:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
Error: readNext from a done Readable
|
__tests__/disconnects.test.ts ► procedures should handle unexpected disconnects ('ws' transport, 'binary' codec) > subscription:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
Error: readNext from a done Readable
|
__tests__/e2e.test.ts ► client <-> server integration test ('ws' transport, 'naive' codec) > subscription:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
Error: readNext from a done Readable
|
__tests__/e2e.test.ts ► client <-> server integration test ('ws' transport, 'naive' codec) > subscription idempotent close:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
Error: readNext from a done Readable
|
__tests__/e2e.test.ts ► client <-> server integration test ('ws' transport, 'binary' codec) > subscription:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
Error: readNext from a done Readable
|
__tests__/e2e.test.ts ► client <-> server integration test ('ws' transport, 'binary' codec) > subscription idempotent close:
./test-results.xml#L0
Failed test found in:
./test-results.xml
Error:
Error: readNext from a done Readable
|
build-and-test (ubuntu-latest)
Failed test were found and 'fail-on-error' option is set to true
|
__tests__/cancellation.test.ts > clean handler cancellation ('ws' transport, 'naive' codec) > e2e > subscribe:
__tests__/fixtures/cleanup.ts#L95
AssertionError: [post-test cleanup] server should not have any open streams after the test: expected Map{} to strictly equal Map{}
- Expected
+ Received
- Map {}
+ Map {
+ "lnLL6eI0dfRv" => Object {
+ "from": "client",
+ "handleMsg": [Function onMessage],
+ "handleSessionDisconnect": [Function handleSessionDisconnect],
+ "procedure": Object {
+ "handler": [Function handler],
+ "requestInit": Object {
+ "properties": Object {},
+ "type": "object",
+ Symbol(TypeBox.Kind): "Object",
+ },
+ "responseData": Object {
+ "properties": Object {},
+ "type": "object",
+ Symbol(TypeBox.Kind): "Object",
+ },
+ "responseError": Object {
+ "not": Object {},
+ Symbol(TypeBox.Kind): "Never",
+ },
+ "type": "subscription",
+ },
+ "procedureName": "subscribe",
+ "serviceName": "service",
+ "sessionMetadata": Object {},
+ "streamId": "lnLL6eI0dfRv",
+ },
+ }
❯ __tests__/fixtures/cleanup.ts:95:7
|
__tests__/cancellation.test.ts > clean handler cancellation ('ws' transport, 'binary' codec) > e2e > subscribe:
__tests__/fixtures/cleanup.ts#L95
AssertionError: [post-test cleanup] server should not have any open streams after the test: expected Map{} to strictly equal Map{}
- Expected
+ Received
- Map {}
+ Map {
+ "GygyP0VK6Zyl" => Object {
+ "from": "client",
+ "handleMsg": [Function onMessage],
+ "handleSessionDisconnect": [Function handleSessionDisconnect],
+ "procedure": Object {
+ "handler": [Function handler],
+ "requestInit": Object {
+ "properties": Object {},
+ "type": "object",
+ Symbol(TypeBox.Kind): "Object",
+ },
+ "responseData": Object {
+ "properties": Object {},
+ "type": "object",
+ Symbol(TypeBox.Kind): "Object",
+ },
+ "responseError": Object {
+ "not": Object {},
+ Symbol(TypeBox.Kind): "Never",
+ },
+ "type": "subscription",
+ },
+ "procedureName": "subscribe",
+ "serviceName": "service",
+ "sessionMetadata": Object {},
+ "streamId": "GygyP0VK6Zyl",
+ },
+ }
❯ __tests__/fixtures/cleanup.ts:95:7
|
__tests__/cleanup.test.ts > procedures should clean up after themselves ('ws' transport, 'naive' codec) > subscription:
util/testHelpers.ts#L123
Error: readNext from a done Readable
❯ Module.readNextResult util/testHelpers.ts:123:11
❯ __tests__/cleanup.test.ts:342:16
|
__tests__/cleanup.test.ts > procedures should clean up after themselves ('ws' transport, 'binary' codec) > subscription:
util/testHelpers.ts#L123
Error: readNext from a done Readable
❯ Module.readNextResult util/testHelpers.ts:123:11
❯ __tests__/cleanup.test.ts:342:16
|
__tests__/disconnects.test.ts > procedures should handle unexpected disconnects ('ws' transport, 'naive' codec) > subscription:
util/testHelpers.ts#L123
Error: readNext from a done Readable
❯ Module.readNextResult util/testHelpers.ts:123:11
❯ __tests__/disconnects.test.ts:199:16
|
__tests__/disconnects.test.ts > procedures should handle unexpected disconnects ('ws' transport, 'binary' codec) > subscription:
util/testHelpers.ts#L123
Error: readNext from a done Readable
❯ Module.readNextResult util/testHelpers.ts:123:11
❯ __tests__/disconnects.test.ts:199:16
|
__tests__/e2e.test.ts > client <-> server integration test ('ws' transport, 'naive' codec) > subscription:
util/testHelpers.ts#L123
Error: readNext from a done Readable
❯ Module.readNextResult util/testHelpers.ts:123:11
❯ __tests__/e2e.test.ts:394:16
|
__tests__/e2e.test.ts > client <-> server integration test ('ws' transport, 'naive' codec) > subscription idempotent close:
util/testHelpers.ts#L123
Error: readNext from a done Readable
❯ Module.readNextResult util/testHelpers.ts:123:11
❯ __tests__/e2e.test.ts:448:23
|
__tests__/e2e.test.ts > client <-> server integration test ('ws' transport, 'binary' codec) > subscription:
util/testHelpers.ts#L123
Error: readNext from a done Readable
❯ Module.readNextResult util/testHelpers.ts:123:11
❯ __tests__/e2e.test.ts:394:16
|
__tests__/e2e.test.ts > client <-> server integration test ('ws' transport, 'binary' codec) > subscription idempotent close:
util/testHelpers.ts#L123
Error: readNext from a done Readable
❯ Module.readNextResult util/testHelpers.ts:123:11
❯ __tests__/e2e.test.ts:448:23
|
build-and-test (macos-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build-and-test (ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|