@@ -6514,7 +6514,7 @@ contract DelegationManagerUnitTests_completeQueuedWithdrawal is DelegationManage
6514
6514
assertFalse (delegationManager.pendingWithdrawals (withdrawalRoot), "withdrawalRoot should be completed and marked false now " );
6515
6515
}
6516
6516
6517
- function test_completeQueuedWithdrawals_OutOfOrderBlocking (Randomness r ) public {
6517
+ function testFuzz_completeQueuedWithdrawals_OutOfOrderBlocking (Randomness r ) public {
6518
6518
uint256 totalDepositShares = r.Uint256 (4 , 100 ether);
6519
6519
uint256 depositSharesPerWithdrawal = totalDepositShares / 4 ;
6520
6520
@@ -6525,7 +6525,10 @@ contract DelegationManagerUnitTests_completeQueuedWithdrawal is DelegationManage
6525
6525
QueuedWithdrawalParams[] memory queuedParams = new QueuedWithdrawalParams [](4 );
6526
6526
Withdrawal[] memory withdrawals = new Withdrawal [](4 );
6527
6527
6528
+ uint256 startBlock = block .number ;
6529
+
6528
6530
for (uint256 i; i < 4 ; ++ i) {
6531
+ cheats.roll (startBlock + i);
6529
6532
(
6530
6533
QueuedWithdrawalParams[] memory params ,
6531
6534
Withdrawal memory withdrawal ,
@@ -6539,10 +6542,12 @@ contract DelegationManagerUnitTests_completeQueuedWithdrawal is DelegationManage
6539
6542
(queuedParams[i], withdrawals[i]) = (params[0 ], withdrawal);
6540
6543
}
6541
6544
6542
- uint256 startBlock = block .number ;
6543
6545
uint256 delay = delegationManager.minWithdrawalDelayBlocks ();
6544
6546
6545
6547
cheats.startPrank (defaultStaker);
6548
+ cheats.roll (startBlock);
6549
+
6550
+ assertEq (queuedParams[0 ].effectBlock, block .timestamp );
6546
6551
delegationManager.queueWithdrawals (queuedParams[0 ].toArray ());
6547
6552
cheats.roll (startBlock + 1 );
6548
6553
delegationManager.queueWithdrawals (queuedParams[1 ].toArray ());
0 commit comments