Skip to content

Mock class and implement custom polling test #1124

Mock class and implement custom polling test

Mock class and implement custom polling test #1124

Triggered via push September 1, 2023 15:36
Status Failure
Total duration 1m 25s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Constructor > Create TestConditionalOrder: src/composable/ConditionalOrder.spec.ts#L0
Error: Invalid handler: 0xdeadbeef at new ConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/ConditionalOrder.ts:57:13) at new TestConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/orderTypes/test/TestConditionalOrder.ts:23:5) at createTestConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/orderTypes/test/TestConditionalOrder.ts:68:3) at Object.<anonymous> (/home/runner/work/cow-sdk/cow-sdk/src/composable/ConditionalOrder.spec.ts:62:38) at Promise.then.completed (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-runner/build/runTest.js:444:34)
Constructor > Fail if bad address: src/composable/ConditionalOrder.spec.ts#L0
Error: Invalid handler: 0xdeadbeef at new ConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/ConditionalOrder.ts:57:13) at new TestConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/orderTypes/test/TestConditionalOrder.ts:23:5) at createTestConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/orderTypes/test/TestConditionalOrder.ts:68:3) at Object.<anonymous> (/home/runner/work/cow-sdk/cow-sdk/src/composable/ConditionalOrder.spec.ts:67:38) at Promise.then.completed (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-runner/build/runTest.js:444:34)
Constructor > Fail if bad salt > Fails if salt is not an hex: src/composable/ConditionalOrder.spec.ts#L0
Error: Invalid salt: cowtomoon at new ConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/ConditionalOrder.ts:62:13) at new TestConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/orderTypes/test/TestConditionalOrder.ts:23:5) at createTestConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/orderTypes/test/TestConditionalOrder.ts:68:3) at Object.<anonymous> (/home/runner/work/cow-sdk/cow-sdk/src/composable/ConditionalOrder.spec.ts:73:35) at Promise.then.completed (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:121:9) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-runner/build/runTest.js:444:34)
Constructor > Fail if bad salt > Fails if salt is too short (not 32 bytes): src/composable/ConditionalOrder.spec.ts#L0
Error: Invalid salt: 0xdeadbeef at new ConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/ConditionalOrder.ts:62:13) at new TestConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/orderTypes/test/TestConditionalOrder.ts:23:5) at createTestConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/orderTypes/test/TestConditionalOrder.ts:68:3) at Object.<anonymous> (/home/runner/work/cow-sdk/cow-sdk/src/composable/ConditionalOrder.spec.ts:79:35) at Promise.then.completed (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:121:9) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-runner/build/runTest.js:444:34)
test
Some jest tests failed.
test
Process completed with exit code 1.
Constructor > Create TestConditionalOrder: src/composable/ConditionalOrder.spec.ts#L0
Error: Invalid handler: 0xdeadbeef at new ConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/ConditionalOrder.ts:57:13) at new TestConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/orderTypes/test/TestConditionalOrder.ts:23:5) at createTestConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/orderTypes/test/TestConditionalOrder.ts:68:3) at Object.<anonymous> (/home/runner/work/cow-sdk/cow-sdk/src/composable/ConditionalOrder.spec.ts:62:38) at Promise.then.completed (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-runner/build/runTest.js:444:34)
Constructor > Fail if bad address: src/composable/ConditionalOrder.spec.ts#L0
Error: Invalid handler: 0xdeadbeef at new ConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/ConditionalOrder.ts:57:13) at new TestConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/orderTypes/test/TestConditionalOrder.ts:23:5) at createTestConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/orderTypes/test/TestConditionalOrder.ts:68:3) at Object.<anonymous> (/home/runner/work/cow-sdk/cow-sdk/src/composable/ConditionalOrder.spec.ts:67:38) at Promise.then.completed (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-runner/build/runTest.js:444:34)
Constructor > Fail if bad salt > Fails if salt is not an hex: src/composable/ConditionalOrder.spec.ts#L0
Error: Invalid salt: cowtomoon at new ConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/ConditionalOrder.ts:62:13) at new TestConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/orderTypes/test/TestConditionalOrder.ts:23:5) at createTestConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/orderTypes/test/TestConditionalOrder.ts:68:3) at Object.<anonymous> (/home/runner/work/cow-sdk/cow-sdk/src/composable/ConditionalOrder.spec.ts:73:35) at Promise.then.completed (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:121:9) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-runner/build/runTest.js:444:34)
Constructor > Fail if bad salt > Fails if salt is too short (not 32 bytes): src/composable/ConditionalOrder.spec.ts#L0
Error: Invalid salt: 0xdeadbeef at new ConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/ConditionalOrder.ts:62:13) at new TestConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/orderTypes/test/TestConditionalOrder.ts:23:5) at createTestConditionalOrder (/home/runner/work/cow-sdk/cow-sdk/src/composable/orderTypes/test/TestConditionalOrder.ts:68:3) at Object.<anonymous> (/home/runner/work/cow-sdk/cow-sdk/src/composable/ConditionalOrder.spec.ts:79:35) at Promise.then.completed (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:121:9) at _runTestsForDescribeBlock (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/cow-sdk/cow-sdk/node_modules/jest-runner/build/runTest.js:444:34)
test
The following actions uses node12 which is deprecated and will be forced to run on node16: styfle/[email protected], actions/checkout@v2, actions/setup-node@v2, actions/cache@v2, mattallty/[email protected], coverallsapp/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/