Skip to content
This repository was archived by the owner on Jul 4, 2022. It is now read-only.

Commit 48ceaab

Browse files
Renamed the node spawned as "plug" from "substrate"
1 parent 79c767b commit 48ceaab

7 files changed

+9
-10
lines changed

bin/node/cli/tests/build_spec_works.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ use tempfile::tempdir;
2121
#[test]
2222
fn build_spec_works() {
2323
let base_path = tempdir().expect("could not create a temp dir");
24-
25-
let output = Command::new(cargo_bin("substrate"))
24+
let output = Command::new(cargo_bin("plug"))
2625
.args(&["build-spec", "--dev", "-d"])
2726
.arg(base_path.path())
2827
.output()

bin/node/cli/tests/check_block_works.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fn check_block_works() {
2828

2929
common::run_command_for_a_while(base_path.path(), false);
3030

31-
let status = Command::new(cargo_bin("substrate"))
31+
let status = Command::new(cargo_bin("plug"))
3232
.args(&["check-block", "-d"])
3333
.arg(base_path.path())
3434
.arg("1")

bin/node/cli/tests/common.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub fn wait_for(child: &mut Child, secs: usize) -> Option<ExitStatus> {
4242

4343
/// Run the node for a while (30 seconds)
4444
pub fn run_command_for_a_while(base_path: &Path, dev: bool) {
45-
let mut cmd = Command::new(cargo_bin("substrate"));
45+
let mut cmd = Command::new(cargo_bin("plug"));
4646

4747
if dev {
4848
cmd.arg("--dev");

bin/node/cli/tests/factory.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ mod common;
2626
fn factory_works() {
2727
let base_path = tempdir().expect("could not create a temp dir");
2828

29-
let status = Command::new(cargo_bin("substrate"))
29+
let status = Command::new(cargo_bin("plug"))
3030
.stdout(Stdio::null())
3131
.args(&["factory", "--dev", "-d"])
3232
.arg(base_path.path())

bin/node/cli/tests/import_export_and_revert_work.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn import_export_and_revert_work() {
2929

3030
common::run_command_for_a_while(base_path.path(), false);
3131

32-
let status = Command::new(cargo_bin("substrate"))
32+
let status = Command::new(cargo_bin("plug"))
3333
.args(&["export-blocks", "-d"])
3434
.arg(base_path.path())
3535
.arg(&exported_blocks)
@@ -42,15 +42,15 @@ fn import_export_and_revert_work() {
4242

4343
let _ = fs::remove_dir_all(base_path.path().join("db"));
4444

45-
let status = Command::new(cargo_bin("substrate"))
45+
let status = Command::new(cargo_bin("plug"))
4646
.args(&["import-blocks", "-d"])
4747
.arg(base_path.path())
4848
.arg(&exported_blocks)
4949
.status()
5050
.unwrap();
5151
assert!(status.success());
5252

53-
let status = Command::new(cargo_bin("substrate"))
53+
let status = Command::new(cargo_bin("plug"))
5454
.args(&["revert", "-d"])
5555
.arg(base_path.path())
5656
.status()

bin/node/cli/tests/inspect_works.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fn inspect_works() {
2828

2929
common::run_command_for_a_while(base_path.path(), false);
3030

31-
let status = Command::new(cargo_bin("substrate"))
31+
let status = Command::new(cargo_bin("plug"))
3232
.args(&["inspect", "-d"])
3333
.arg(base_path.path())
3434
.args(&["block", "1"])

bin/node/cli/tests/running_the_node_and_interrupt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fn running_the_node_works_and_can_be_interrupted() {
2828

2929
fn run_command_and_kill(signal: Signal) {
3030
let base_path = tempdir().expect("could not create a temp dir");
31-
let mut cmd = Command::new(cargo_bin("substrate"))
31+
let mut cmd = Command::new(cargo_bin("plug"))
3232
.args(&["--dev", "-d"])
3333
.arg(base_path.path())
3434
.spawn()

0 commit comments

Comments
 (0)