Skip to content

Commit

Permalink
done done
Browse files Browse the repository at this point in the history
  • Loading branch information
ebatsell committed Dec 4, 2024
1 parent d119bd5 commit c3f315e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/tests/steward/test_cycle.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::await_holding_refcell_ref)]
use std::collections::HashMap;

use anchor_lang::{
Expand Down Expand Up @@ -101,8 +102,7 @@ async fn test_cycle() {

crank_epoch_maintenance(&fixture, None).await;
// Auto add validator - adds to validator list
for i in 0..unit_test_fixtures.validators.len() {
let extra_accounts = &extra_validator_accounts[i];
for extra_accounts in extra_validator_accounts.iter() {
auto_add_validator(&fixture, extra_accounts).await;
}

Expand Down Expand Up @@ -525,8 +525,7 @@ async fn test_add_validator_next_cycle() {

crank_epoch_maintenance(&fixture, None).await;
// Auto add validator - adds validators 2 and 3
for i in 0..2 {
let extra_accounts = &extra_validator_accounts[i];
for extra_accounts in extra_validator_accounts.iter().take(2) {
auto_add_validator(&fixture, extra_accounts).await;
}

Expand Down
1 change: 1 addition & 0 deletions tests/tests/steward/test_steward.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(clippy::await_holding_refcell_ref)]
/// Basic integration test
use anchor_lang::{
solana_program::{instruction::Instruction, pubkey::Pubkey, stake, sysvar},
Expand Down

0 comments on commit c3f315e

Please sign in to comment.