Skip to content

Commit

Permalink
import NODE_URLs from helper
Browse files Browse the repository at this point in the history
  • Loading branch information
pLabarta authored and atodorov committed Aug 10, 2023
1 parent 046d5ed commit 5d20259
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/cc-cli/src/test/integration-tests/wizard.test.ts
Original file line number Diff line number Diff line change
@@ -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", () => {
Expand All @@ -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,
Expand All @@ -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);
Expand Down

0 comments on commit 5d20259

Please sign in to comment.