Skip to content

feat: add LND containers for testing #313

feat: add LND containers for testing

feat: add LND containers for testing #313

Triggered via pull request August 15, 2024 08:47
Status Failure
Total duration 22m 45s
Artifacts

tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
test/tb04-simple-lightning-latch.test.js > TB04 - Statecoin sender can recover (resend their coin) after batch timeout without completion > expected flow: clients/libs/web/transfer_send.js#L177
AxiosError: Request failed with status code 400 ❯ settle ../../../../../../../../node_modules/.vite/deps/axios.js:1205:12 ❯ XMLHttpRequest.onloadend ../../../../../../../../node_modules/.vite/deps/axios.js:1551:7 ❯ Axios.request ../../../../../../../../node_modules/.vite/deps/axios.js:2067:41 ❯ get_new_x1 ../../libs/web/transfer_send.js:177:22 ❯ Object.execute ../../libs/web/transfer_send.js:95:20 ❯ Object.transferSend ../../libs/web/main.js:94:10 ❯ test/tb04-simple-lightning-latch.test.js:309:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json' }, method: 'post', url: 'http://0.0.0.0:8000/transfer/sender', data: '{"statechain_id":"36b6170651ec4e638ef3ef3a081a132d","auth_sig":"b243dcb923001e4d5e61630299b394951cee6b35a57eef8b98294b52f4eec34b64b0862044634fb4a0dfe1251f96d836b28f07d327f1f1b92a74fa26a7d24ab0","new_user_auth_key":"03977fba762a873b5976211d8cc2432a6faad869ea2d6edebc7b0050ee96708354","batch_id":"781c6a6b-09e4-48c6-8a87-d0a679de7592"}' }, code: 'ERR_BAD_REQUEST', status: 400 }
test/tb04-simple-lightning-latch.test.js > Statecoin sender sends coin without batch_id (receiver should still be able to receive, but no pre-image revealed) > expected flow: clients/tests/web/test/tb04-simple-lightning-latch.test.js#L555
AssertionError: expected false to be true // Object.is equality - Expected + Received - true + false ❯ test/tb04-simple-lightning-latch.test.js:555:52
test/tb04-simple-lightning-latch.test.js > TB04 - Sender sends coin without batch_id, and then resends to a different address (to attempt to steal), and then attempts to retrieve the pre-image, should fail (and LN payment cannot be claimed) > expected flow: clients/libs/web/withdraw.js#L39
Error: No duplicated coins associated with this statechain ID and index null were found ❯ Object.execute ../../libs/web/withdraw.js:39:19 ❯ Object.withdrawCoin ../../libs/web/main.js:65:10 ❯ test/tb04-simple-lightning-latch.test.js:650:9
test/tb04-simple-lightning-latch.test.js > TB04 - Statecoin sender can recover (resend their coin) after batch timeout without completion > expected flow: clients/libs/web/transfer_send.js#L177
AxiosError: Request failed with status code 400 ❯ settle ../../../../../../../../node_modules/.vite/deps/axios.js:1205:12 ❯ XMLHttpRequest.onloadend ../../../../../../../../node_modules/.vite/deps/axios.js:1551:7 ❯ Axios.request ../../../../../../../../node_modules/.vite/deps/axios.js:2067:41 ❯ get_new_x1 ../../libs/web/transfer_send.js:177:22 ❯ Object.execute ../../libs/web/transfer_send.js:95:20 ❯ Object.transferSend ../../libs/web/main.js:94:10 ❯ test/tb04-simple-lightning-latch.test.js:309:9 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json' }, method: 'post', url: 'http://0.0.0.0:8000/transfer/sender', data: '{"statechain_id":"2e02090397d945e3a0fe4cc4384ffeba","auth_sig":"f939dd795239552ca0b1fe9fb975edb395bbd0c440bcc6558e5145388419c5b44ee25c1de932a2a68c5495e3ff59c52d9dc8f42ee4d754610abcb25b0f4ed870","new_user_auth_key":"0272374913f6b89918cccb713d7a181b1ef4cfcba75a1168e0624e424b822703f6","batch_id":"b3eddf1e-84a0-45f7-839f-bf765fa9401b"}' }, code: 'ERR_BAD_REQUEST', status: 400 }
test/tb04-simple-lightning-latch.test.js > TB04 - Receiver tries to transfer invoice amount to another invoice before preimage retrieval should fail > expected flow: clients/tests/web/test-utils.js#L53
AxiosError: Request failed with status code 500 ❯ settle ../../../../../../../../node_modules/.vite/deps/axios.js:1205:12 ❯ XMLHttpRequest.onloadend ../../../../../../../../node_modules/.vite/deps/axios.js:1551:7 ❯ Axios.request ../../../../../../../../node_modules/.vite/deps/axios.js:2067:41 ❯ generateInvoice test-utils.js:53:20 ❯ test/tb04-simple-lightning-latch.test.js:488:31 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json' }, method: 'post', url: 'http://0.0.0.0:3000/generate_invoice', data: '{"paymentHash":"4f67f0a4bc4a8a6a8ecb944e9b748ed7c27655fbdb4c4d3f045d7f18c1e4de64","amountInSats":1000}' }, code: 'ERR_BAD_RESPONSE', status: 500 }
test/tb04-simple-lightning-latch.test.js > Statecoin sender sends coin without batch_id (receiver should still be able to receive, but no pre-image revealed) > expected flow: clients/tests/web/test/tb04-simple-lightning-latch.test.js#L555
AssertionError: expected false to be true // Object.is equality - Expected + Received - true + false ❯ test/tb04-simple-lightning-latch.test.js:555:52
test/tb04-simple-lightning-latch.test.js > TB04 - Sender sends coin without batch_id, and then resends to a different address (to attempt to steal), and then attempts to retrieve the pre-image, should fail (and LN payment cannot be claimed) > expected flow: clients/libs/web/withdraw.js#L39
Error: No duplicated coins associated with this statechain ID and index null were found ❯ Object.execute ../../libs/web/withdraw.js:39:19 ❯ Object.withdrawCoin ../../libs/web/main.js:65:10 ❯ test/tb04-simple-lightning-latch.test.js:650:9
test/tb04-simple-lightning-latch.test.js > Coin receiver creates a non hold invoice, and sends to sender (i.e. an invoice with the a different payment hash). Sender should be able to determine this. > expected flow: clients/tests/web/test-utils.js#L53
AxiosError: Request failed with status code 500 ❯ settle ../../../../../../../../node_modules/.vite/deps/axios.js:1205:12 ❯ XMLHttpRequest.onloadend ../../../../../../../../node_modules/.vite/deps/axios.js:1551:7 ❯ Axios.request ../../../../../../../../node_modules/.vite/deps/axios.js:2067:41 ❯ generateInvoice test-utils.js:53:20 ❯ test/tb04-simple-lightning-latch.test.js:710:31 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json' }, method: 'post', url: 'http://0.0.0.0:3000/generate_invoice', data: '{"paymentHash":"b4eab5e663aebe5fc645865b27b33c04c4e057e7c844fa61519df6de1398cdb3","amountInSats":1000}' }, code: 'ERR_BAD_RESPONSE', status: 500 }
test
Process completed with exit code 1.
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. 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 following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/