Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions smoke-tests/src/libra_smoke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,16 @@
);
println!("Using diem-node binary at {:?}", &diem_path);

let mut swarm_path = TempPath::new();
swarm_path.create_as_dir()?;
swarm_path.persist();
println!("Creating swarm at {:?}", swarm_path.path());
let swarm_dir = swarm_path.path().to_str().map(|s| s.to_string());

let mut swarm = smoke_test_environment::new_local_swarm_with_release(

Check failure on line 95 in smoke-tests/src/libra_smoke.rs

View workflow job for this annotation

GitHub Actions / clippy

this function takes 2 arguments but 3 arguments were supplied
count_vals.unwrap_or(1).into(),
bundle,
swarm_dir,
)
.await;
let chain_name =
Expand Down
2 changes: 1 addition & 1 deletion smoke-tests/tests/balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use smoke_test::smoke_test_environment::new_local_swarm_with_release;
// let's check that this test environment produces same coins as expected in unit tests, and we have the tools to mint and test balances
async fn sanity_balances() -> anyhow::Result<()> {
let release = ReleaseTarget::Head.load_bundle().unwrap();
let mut swarm = new_local_swarm_with_release(4, release).await;
let mut swarm = new_local_swarm_with_release(4, release, None).await;
let v = swarm.validators_mut().next().unwrap();
let pri_key = v.account_private_key().as_ref().unwrap();
let address = v.peer_id().to_owned();
Expand Down
2 changes: 1 addition & 1 deletion smoke-tests/tests/meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use smoke_test::smoke_test_environment::new_local_swarm_with_release;
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
async fn meta_can_start_swarm() {
let release = ReleaseTarget::Head.load_bundle().unwrap();
let mut swarm = new_local_swarm_with_release(1, release).await;
let mut swarm = new_local_swarm_with_release(1, release, None).await;
let mut public_info = swarm.diem_public_info();

let payload = public_info
Expand Down
Loading