Skip to content

Commit

Permalink
test: offchain worker test uses build-spec-dancelight-single-containe…
Browse files Browse the repository at this point in the history
…r.sh setup script that spawns only 1 container chain
  • Loading branch information
Aleksandar Brayanov committed Nov 5, 2024
1 parent 3faffe0 commit 7834cad
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/moonwall.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@
"timeout": 600000,
"testFileDir": ["suites/zombie-offchain"],
"runScripts": [
"build-spec-dancelight.sh",
"build-spec-dancelight-single-container.sh",
"compile-wasm.ts compile -b ../target/release/container-chain-simple-node -o wasm -c specs/single-container-template-container-2000.json"
],
"foundation": {
Expand Down
17 changes: 17 additions & 0 deletions test/scripts/build-spec-dancelight-single-container.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

# Exit on any error
set -e

# Always run the commands from the "test" dir
cd $(dirname $0)/..

if [[ -z "${1}" || ${1} == "undefined" ]]; then
BINARY_FOLDER="../target/release"
else
BINARY_FOLDER="${1}"
fi

mkdir -p specs
$BINARY_FOLDER/container-chain-simple-node build-spec --disable-default-bootnode --add-bootnode "/ip4/127.0.0.1/tcp/33049/ws/p2p/12D3KooWHVMhQDHBpj9vQmssgyfspYecgV6e3hH1dQVDUkUbCYC9" --parachain-id 2000 --raw > specs/single-container-template-container-2000.json
$BINARY_FOLDER/tanssi-relay build-spec --chain dancelight-local --add-container-chain specs/single-container-template-container-2000.json --invulnerable "Collator-01" --invulnerable "Collator-02" > specs/tanssi-relay.json

0 comments on commit 7834cad

Please sign in to comment.