mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
fix(test_utils): remove cmd alias for std::process::Command (#1981)
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
use std::{
|
use std::{
|
||||||
env,
|
env,
|
||||||
process::{exit, Command as cmd},
|
process::{exit, Command},
|
||||||
};
|
};
|
||||||
|
|
||||||
use clap::{arg, command, Parser};
|
use clap::{arg, command, Parser};
|
||||||
@ -45,7 +45,7 @@ fn main() {
|
|||||||
// been added to the postman collection, those conditions are set to true and collections that have
|
// been added to the postman collection, those conditions are set to true and collections that have
|
||||||
// variables set up for certificate, will consider those variables and will fail.
|
// variables set up for certificate, will consider those variables and will fail.
|
||||||
|
|
||||||
let mut newman_command = cmd::new("newman");
|
let mut newman_command = Command::new("newman");
|
||||||
newman_command.args(["run", &collection_path]);
|
newman_command.args(["run", &collection_path]);
|
||||||
newman_command.args(["--env-var", &format!("admin_api_key={admin_api_key}")]);
|
newman_command.args(["--env-var", &format!("admin_api_key={admin_api_key}")]);
|
||||||
newman_command.args(["--env-var", &format!("baseUrl={base_url}")]);
|
newman_command.args(["--env-var", &format!("baseUrl={base_url}")]);
|
||||||
|
|||||||
Reference in New Issue
Block a user