fix: safe race condition #3946
Annotations
4 errors and 2 warnings
src/hooks/transactions/transactionStore.ts#L329
Error: Unable to add transaction
Invalid transaction hash
❯ addTransaction src/hooks/transactions/transactionStore.ts:329:13
❯ onReplaced src/hooks/transactions/transactionStore.ts:405:17
❯ Timeout._onTimeout src/hooks/transactions/transactionStore.test.ts:57:9
❯ listOnTimeout node:internal/timers:581:17
❯ processTimers node:internal/timers:519:7
This error originated in "src/hooks/transactions/transactionStore.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "should allow a repriced transaction". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
src/hooks/transactions/transactionStore.test.ts#L73
AssertionError: expected [ { …(8) } ] to have a length of 2 but got 1
Ignored nodes: comments, script, style
<html>
<head />
<body />
</html>
- Expected
+ Received
- 2
+ 1
❯ src/hooks/transactions/transactionStore.test.ts:73:69
❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
src/hooks/transactions/waitForTransaction.test.ts#L75
AssertionError: expected "waitForTransactionReceipt" to be called with arguments: [ { chain: { id: 1 }, …(1) }, …(1) ]
Received:
1st waitForTransactionReceipt call:
Array [
Object {
"chain": Object {
"id": 1,
},
"request": [Function spy],
},
- ObjectContaining {
- "onReplaced": [Function spy],
+ Object {
+ "confirmations": 1,
+ "hash": "0xtest",
+ "onReplaced": [Function onReplaced],
+ "timeout": 0,
},
]
2nd waitForTransactionReceipt call:
Array [
Object {
"chain": Object {
"id": 1,
},
"request": [Function spy],
},
- ObjectContaining {
- "onReplaced": [Function spy],
+ Object {
+ "confirmations": 1,
+ "hash": "0xtest",
+ "onReplaced": [Function onReplaced],
+ "timeout": 0,
},
]
Number of calls: 2
❯ src/hooks/transactions/waitForTransaction.test.ts:75:43
|
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "stateful-build", "stateful-report", "stateless-build", "stateless-report".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
The logs for this run have expired and are no longer available.
Loading