Skip to content

Commit

Permalink
chore: just test conn (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeeshan Lakhani committed Jan 30, 2024
1 parent ec49d6c commit d420416
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions homestar-runtime/tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,26 +280,6 @@ fn test_daemon_integration() -> Result<()> {
panic!("Homestar server/runtime failed to start in time");
}

let res = Command::new(BIN.as_os_str())
.arg("ping")
.arg("--host")
.arg("127.0.0.1")
.arg("-p")
.arg(rpc_port.to_string())
.assert()
.try_success();

match res {
Ok(ok) => {
ok.stdout(predicate::str::contains("127.0.0.1"))
.stdout(predicate::str::contains("pong"));
}
Err(err) => {
kill_homestar_daemon().unwrap();
panic!("Err: {:?}", err);
}
}

kill_homestar_daemon().unwrap();
Ok(())
}
Expand Down

0 comments on commit d420416

Please sign in to comment.