Skip to content

Commit

Permalink
Switch to using sui instead of sui-test-validator (#144)
Browse files Browse the repository at this point in the history
* Switch to using sui instead of sui-test-validator

* Fix
  • Loading branch information
stefan-mysten authored Jul 1, 2024
1 parent cdd8215 commit 14d2789
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sdk_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs:
- name: Prepare local network & run SDK tests
run: |
./sui-test-validator --epoch-duration-ms 300000 > /dev/null 2>&1 & cd sdk && VITE_SUI_BIN="../sui" pnpm test:e2e
./sui start --with-faucet --force-regenesis --epoch-duration-ms 300000 > /dev/null 2>&1 & cd sdk && VITE_SUI_BIN="../sui" pnpm test:e2e
2 changes: 1 addition & 1 deletion sdk/information.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ To run e2e tests, you need to first run a local sui network with the simplest se
You'd need the sui repository installed, and you could run the following command on the `sui` root folder.

```sh
cargo build --bin sui-test-validator --bin sui --profile dev && cross-env RUST_LOG=info,sui=error,anemo_tower=warn,consensus=off cargo run --bin sui-test-validator -- --epoch-duration-ms 300000
cargo build --bin sui --profile dev && cross-env RUST_LOG=info,sui=error,anemo_tower=warn,consensus=off cargo run --bin sui -- start --with-faucet --force-regenesis --epoch-duration-ms 300000
```

And then you can execute the tests (using a new terminal) by running:
Expand Down
2 changes: 1 addition & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"lint": "pnpm run eslint:check && pnpm run prettier:check",
"lint:fix": "pnpm run eslint:fix && pnpm run prettier:fix",
"test:e2e": "wait-on http://127.0.0.1:9123 -l --timeout 120000 && vitest run",
"prepare:e2e": "cargo build --bin sui-test-validator --bin sui --profile dev && cross-env RUST_LOG=info,sui=error,anemo_tower=warn,consensus=off cargo run --bin sui-test-validator -- --epoch-duration-ms 300000"
"prepare:e2e": "cargo build --bin sui --profile dev && cross-env RUST_LOG=info,sui=error,anemo_tower=warn,consensus=off cargo run --bin sui -- start --with-faucet --force-regenesis --epoch-duration-ms 300000"
},
"engines": {
"node": ">=16"
Expand Down

0 comments on commit 14d2789

Please sign in to comment.