From 5d2025975b3a330e6605ee58369d81e03ee18460 Mon Sep 17 00:00:00 2001 From: Pablo Labarta Date: Wed, 9 Aug 2023 15:06:49 -0300 Subject: [PATCH] import NODE_URLs from helper --- scripts/cc-cli/src/test/integration-tests/wizard.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/cc-cli/src/test/integration-tests/wizard.test.ts b/scripts/cc-cli/src/test/integration-tests/wizard.test.ts index 362e260ee9..e3a5f43b28 100644 --- a/scripts/cc-cli/src/test/integration-tests/wizard.test.ts +++ b/scripts/cc-cli/src/test/integration-tests/wizard.test.ts @@ -1,7 +1,7 @@ import { newApi } from "../../api"; import { parseAmountInternal } from "../../utils/parsing"; import { getValidatorStatus } from "../../utils/validatorStatus"; -import { fundAccounts } from "./helpers"; +import { ALICE_NODE_URL, BOB_NODE_URL, fundAccounts } from "./helpers"; import execa from "execa"; describe("integration test: validator wizard setup", () => { @@ -12,7 +12,7 @@ describe("integration test: validator wizard setup", () => { ); // Run wizard setup with 1k ctc ang to pair with node Bob execa.commandSync( - `creditcoin-cli wizard --amount 1000 --url ws://localhost:9945`, + `creditcoin-cli wizard --amount 1000 --url ${BOB_NODE_URL}`, { env: { CC_STASH_SEED: stash.seed, @@ -21,7 +21,7 @@ describe("integration test: validator wizard setup", () => { } ); - const { api } = await newApi("ws://localhost:9944"); + const { api } = await newApi(ALICE_NODE_URL); const validatorStatus = await getValidatorStatus(stash.address, api); expect(validatorStatus.waiting).toBe(true);