use erc20_payment_lib_test::test_durability2; use std::env; #[tokio::test(flavor = "multi_thread")] async fn test_durability_custom() -> Result<(), anyhow::Error> { let transfer_count = env::var("ERC20_TEST_TRANSFER_COUNT").unwrap_or("100".to_string()); let transfer_count = transfer_count .parse::() .expect("ERC20_TEST_TRANSFER_COUNT has to be number"); let transfers_at_once = env::var("ERC20_TEST_MAX_IN_TX").unwrap_or("10".to_string()); let transfers_at_once = transfers_at_once .parse::() .expect("ERC20_TEST_MAX_IN_TX has to be number"); let accounts_count = env::var("ERC20_TEST_ACCOUNTS_COUNT").unwrap_or("1".to_string()); let accounts_count = accounts_count .parse::() .expect("ERC20_TEST_ACCOUNTS_COUNT has to be number"); let transfer_interval = env::var("ERC20_TEST_TRANSFER_INTERVAL").unwrap_or("0.01".to_string()); let transfer_interval = transfer_interval .parse::() .expect("ERC20_TEST_TRANSFER_INTERVAL has to be number"); test_durability2( accounts_count, transfer_count, transfer_interval, transfers_at_once, ) .await }