Skip to content

Commit

Permalink
small fix for grep test (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
timbrinded authored Feb 8, 2024
1 parent 6d811ef commit c496727
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-steaks-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@moonwall/cli": patch
---

Fix to run grep
4 changes: 2 additions & 2 deletions packages/cli/src/internal/commandParsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { ChopsticksLaunchSpec, DevLaunchSpec, RepoSpec, ZombieLaunchSpec } from
import chalk from "chalk";
import path from "path";
import { standardRepos } from "../lib/repoDefinitions";
import getPort from "get-port";

export function parseZombieCmd(launchSpec: ZombieLaunchSpec) {
if (launchSpec) {
Expand Down Expand Up @@ -67,7 +66,8 @@ export async function parseRunCmd(launchSpec: DevLaunchSpec, additionalRepos?: R

export const getFreePort = async () => {
const notionalPort = 10000 + Number(process.env.VITEST_POOL_ID || 1) * 100;
return getPort({ port: notionalPort });
// return getPort({ port: notionalPort });
return notionalPort;
};

export function parseChopsticksRunCmd(launchSpecs: ChopsticksLaunchSpec[]): {
Expand Down
33 changes: 33 additions & 0 deletions test/configs/relaytest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[[parachains]]
cumulus_based = true
id = 2_001

[parachains.collator]
args = ["-lparachain=debug"]
command = "polkadot-parachain"
image = "parity/polkadot-parachain:1.6.0"
name = "collator02"

[relaychain]
chain = "rococo-local"
default_image = "docker.io/parity/polkadot:v1.6.0"

[relaychain.genesis.runtimeGenesis.patch.configuration.config]
scheduling_lookahead = 4

[relaychain.genesis.runtimeGenesis.patch.configuration.config.async_backing_params]
allowed_ancestry_len = 4
max_candidate_depth = 4

[[relaychain.node_groups]]
args = ["-lparachain=debug"]
count = 2
name = "alice"

[settings]
timeout = 1_000

[types.Header]
number = "u64"
parent_hash = "Hash"
post_state = "Hash"

0 comments on commit c496727

Please sign in to comment.