Skip to content

Commit

Permalink
fix chopsticks tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RomarQ committed Oct 1, 2024
1 parent c4b503a commit 3056244
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
12 changes: 1 addition & 11 deletions packages/cli/src/internal/commandParsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function parseChopsticksRunCmd(launchSpecs: ChopsticksLaunchSpec[]): {
const chopsticksArgs = [
"node_modules/@acala-network/chopsticks/chopsticks.cjs",
`--config=${launchSpecs[0].configPath}`,
`--addr=${launchSpecs[0].address ?? "127.0.0.1"}` // use old behaviour by default
`--addr=${launchSpecs[0].address ?? "127.0.0.1"}`, // use old behaviour by default
];

const mode = launchSpecs[0].buildBlockMode ? launchSpecs[0].buildBlockMode : "manual";
Expand Down Expand Up @@ -125,16 +125,6 @@ export function parseChopsticksRunCmd(launchSpecs: ChopsticksLaunchSpec[]): {
chopsticksArgs.push(`--relaychain=${spec.configPath}`);
}
}
// launchSpecs.forEach((spec) => {
// const type = spec.type ? spec.type : "parachain";
// switch (type) {
// case "parachain":
// chopsticksArgs.push(`--parachain=${spec.configPath}`);
// break;
// case "relaychain":
// chopsticksArgs.push(`--relaychain=${spec.configPath}`);
// }
// });

return {
cmd: chopsticksCmd,
Expand Down
6 changes: 3 additions & 3 deletions test/moonwall.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -860,17 +860,17 @@
{
"name": "polkadot",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:8002"]
"endpoints": ["ws://localhost:8002"]
},
{
"name": "hydradx",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:8000"]
"endpoints": ["ws://localhost:8000"]
},
{
"name": "zeitgeist",
"type": "polkadotJs",
"endpoints": ["ws://127.0.0.1:8001"]
"endpoints": ["ws://localhost:8001"]
}
]
}
Expand Down

0 comments on commit 3056244

Please sign in to comment.