Skip to content

Commit

Permalink
Fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Feb 18, 2024
1 parent 9dfe77e commit df44a06
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ci: fmt clippy test security-audit check-crates check-licenses
git diff --exit-code Cargo.lock

integration:
bash devtools/ci/integration.sh v0.111.0-rc8
bash devtools/ci/integration.sh v0.114.0-rc1

prod: ## Build binary with release profile.
cargo build --release
Expand Down
12 changes: 6 additions & 6 deletions test/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ pub struct App {
impl App {
pub fn init() -> Self {
let matches = Self::matches();
let ckb_bin = matches.value_of("ckb-bin").unwrap().to_string();
let cli_bin = matches.value_of("cli-bin").unwrap().to_string();
let keystore_plugin_bin = matches.value_of("keystore-plugin").unwrap().to_string();
let ckb_bin = matches.get_one::<String>("ckb-bin").unwrap().to_owned();
let cli_bin = matches.get_one::<String>("cli-bin").unwrap().to_owned();
let keystore_plugin_bin: String = matches
.get_one::<String>("keystore-plugin")
.unwrap()
.to_owned();
assert!(
Path::new(&ckb_bin).exists(),
"ckb-bin binary not exists: {}",
Expand Down Expand Up @@ -52,23 +55,20 @@ impl App {
.arg(
clap::Arg::new("ckb-bin")
.long("ckb-bin")
.takes_value(true)
.required(true)
.value_name("PATH")
.help("Path to ckb executable"),
)
.arg(
clap::Arg::new("cli-bin")
.long("cli-bin")
.takes_value(true)
.required(true)
.value_name("PATH")
.help("Path to ckb-cli executable"),
)
.arg(
clap::Arg::new("keystore-plugin")
.long("keystore-plugin")
.takes_value(true)
.required(true)
.value_name("PATH")
.help("Path to keystore plugin executable"),
Expand Down

0 comments on commit df44a06

Please sign in to comment.