Skip to content

Commit

Permalink
chore(ft-benchmarks): fix wrong path and set PRNG seed (#2964)
Browse files Browse the repository at this point in the history
  • Loading branch information
StackOverflowExcept1on authored Jul 22, 2023
1 parent 4541852 commit 6e3ad06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/fungible-token/tests/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ use ft_io::*;
use gclient::{EventProcessor, GearApi, Result};
use gear_core::ids::{MessageId, ProgramId};
use gstd::{vec, ActorId, Encode, Vec};
use rand::Rng;
use rand::{rngs::StdRng, Rng, SeedableRng};
use statrs::statistics::Statistics;

/// Path to the gear node binary.
const GEAR_PATH: &str = "../../../target/release/gear";
const GEAR_PATH: &str = "../../target/release/gear";

/// This constant defines the number of messages in the batch.
/// It is calculated empirically, and 25 is considered the optimal value for
Expand Down Expand Up @@ -206,7 +206,7 @@ async fn stress_test() -> Result<()> {
#[ignore]
#[tokio::test]
async fn stress_transfer() -> Result<()> {
let mut rng = rand::thread_rng();
let mut rng = StdRng::seed_from_u64(42);

let api = GearApi::dev_from_path(GEAR_PATH).await?;
// Use this code in comment for custom node run:
Expand Down

0 comments on commit 6e3ad06

Please sign in to comment.