Skip to content

Commit

Permalink
Set wasm-runtime-overrides arg in ts tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tgmichel committed Sep 22, 2021
1 parent 77691aa commit 695b082
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,7 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'A10-evmtracing')
env:
BINARY_PATH: ../build/moonbeam
# `debug` or `trace` require `--wasm-runtime-overrides`. For CI we can provide any directory.
ETHAPI_CMD: --ethapi=txpool,debug,trace --wasm-runtime-overrides=/
ETHAPI_CMD: --ethapi=txpool,debug,trace
run: |
cd moonbeam-types-bundle
npm install
Expand Down Expand Up @@ -428,8 +427,7 @@ jobs:
- name: Typescript evm-tracing tests (against dev service)
env:
BINARY_PATH: ../build/moonbeam-tracing
# `debug` or `trace` require `--wasm-runtime-overrides`. For CI we can provide any directory.
ETHAPI_CMD: --ethapi=txpool,debug,trace --wasm-runtime-overrides=/
ETHAPI_CMD: --ethapi=txpool,debug,trace
run: |
cd tests
node_modules/.bin/mocha --parallel -j 7 -r ts-node/register 'tracing-tests/**/test-*.ts'
Expand Down
5 changes: 4 additions & 1 deletion tests/util/dev-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export async function startMoonbeamDevNode(withWasm?: boolean): Promise<{
const { p2pPort, rpcPort, wsPort } = await findAvailablePorts();

const cmd = BINARY_PATH;
const args = [
let args = [
withWasm ? `--execution=Wasm` : `--execution=Native`, // Faster execution using native
ETHAPI_CMD != "" ? `${ETHAPI_CMD}` : `--ethapi=txpool`,
`--no-telemetry`,
Expand All @@ -67,6 +67,9 @@ export async function startMoonbeamDevNode(withWasm?: boolean): Promise<{
`--ws-port=${wsPort}`,
`--tmp`,
];
if(ETHAPI_CMD != "") {
args.push("--wasm-runtime-overrides=/");
}
debug(`Starting dev node: --port=${p2pPort} --rpc-port=${rpcPort} --ws-port=${wsPort}`);

const onProcessExit = function () {
Expand Down

0 comments on commit 695b082

Please sign in to comment.