feat: add LND containers for testing #318
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/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:66:10
❯ test/tb04-simple-lightning-latch.test.js:320:9
|
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#L576
AssertionError: expected undefined to deeply equal '1c995f7e43f98df6ffd56fe0d135f1d7a45ef…'
- Expected:
"1c995f7e43f98df6ffd56fe0d135f1d7a45efa172870fe89433463d459d91ad1"
+ Received:
undefined
❯ test/tb04-simple-lightning-latch.test.js:576:30
|
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/tests/web/test/tb04-simple-lightning-latch.test.js#L657
AssertionError: expected undefined to deeply equal 'a0dc2841aef32491a235a8a4abe78907970b7…'
- Expected:
"a0dc2841aef32491a235a8a4abe78907970b7826c6e48c5d147fdc37287cccaa"
+ Received:
undefined
❯ test/tb04-simple-lightning-latch.test.js:657:30
|
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#L118
SyntaxError: "[object Object]" is not valid JSON
❯ decodeInvoice test-utils.js:118:30
❯ Object.verifyInvoice ../../libs/web/main.js:133:26
❯ test/tb04-simple-lightning-latch.test.js:708:32
|
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/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:66:10
❯ test/tb04-simple-lightning-latch.test.js:320:9
|
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#L576
AssertionError: expected undefined to deeply equal '13e772c5d8e3486081969369c27356e5ee663…'
- Expected:
"13e772c5d8e3486081969369c27356e5ee663b622ec46a489b3a212e0f4d0bc2"
+ Received:
undefined
❯ test/tb04-simple-lightning-latch.test.js:576:30
|
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/tests/web/test/tb04-simple-lightning-latch.test.js#L657
AssertionError: expected undefined to deeply equal '97369289990404d1be4cee5bbf110bc83bde0…'
- Expected:
"97369289990404d1be4cee5bbf110bc83bde0066196ad26ef9730086c4751049"
+ Received:
undefined
❯ test/tb04-simple-lightning-latch.test.js:657:30
|
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:706: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/
|