Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions ts-tests/moonwall.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"suites/dev"
],
"runScripts": [],
"multiThreads": false,
"multiThreads": true,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MEDIUM] Do not parallelize the shared dev chain tests

The dev Moonwall suite is not isolated per test file: the existing files under suites/dev reuse shared keyring accounts such as Alice/Bob, mutate global chain state, register subnets, sudo-set parameters, and manually create blocks against the configured dev foundation. Enabling multiThreads lets those files run concurrently against that same environment, so nonce reads, block creation, subnet IDs, balances, and pallet state can race each other. That makes the timeout fix non-deterministic and can turn passing tests into flakes.

Keep this disabled unless the suite is first split so each worker gets an isolated node/state snapshot or the tests are made concurrency-safe.

Suggested change
"multiThreads": true,
"multiThreads": false,

"reporters": ["basic"],
"foundation": {
"type": "dev",
Expand All @@ -32,9 +32,7 @@
"--sealing=manual"
],
"disableDefaultEthProviders": true,
"newRpcBehaviour": true,
"maxStartupTimeout": 120000,
"connectTimeout": 30000
"newRpcBehaviour": true
}
]
}
Expand Down
Loading
Loading