From 4831d1e6411c3e6d49b2e502bc683d4ee6de61d7 Mon Sep 17 00:00:00 2001 From: akildemir Date: Thu, 20 Jun 2024 15:12:18 +0300 Subject: [PATCH] remove selecting participant to remove at random --- substrate/client/tests/validator_sets.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/substrate/client/tests/validator_sets.rs b/substrate/client/tests/validator_sets.rs index 0ac3bad43..8aa8174f4 100644 --- a/substrate/client/tests/validator_sets.rs +++ b/substrate/client/tests/validator_sets.rs @@ -247,8 +247,7 @@ async fn validator_set_rotation() { .await; // remove 1 participant - let participant_to_remove = - accounts[usize::try_from(OsRng.next_u64() % 4).unwrap()].clone(); + let participant_to_remove = accounts[1].clone(); let hash = deallocate_stake( &serai, network,