|
25 | 25 | update_vaults_state, |
26 | 26 | ) |
27 | 27 | from src.common.typings import HarvestParams |
28 | | -from src.meta_vault.exceptions import ClaimDelayNotPassedException |
29 | 28 | from src.meta_vault.typings import SubVaultRedemption |
30 | 29 | from src.redemptions.os_token_converter import OsTokenConverter |
31 | 30 | from src.redemptions.typings import OsTokenPosition |
@@ -510,24 +509,6 @@ async def test_meta_vault_update_state_failure_raises(self) -> None: |
510 | 509 | with pytest.raises(RuntimeError, match='Failed to update meta vault tree state'): |
511 | 510 | await update_vaults_state(vaults=[VAULT_1], block_number=BlockNumber(100)) |
512 | 511 |
|
513 | | - async def test_meta_vault_claim_delay_logged_and_continues(self) -> None: |
514 | | - """ClaimDelayNotPassedException is caught, logged, and does not abort the round. |
515 | | -
|
516 | | - Regular vaults batched alongside the meta vault are still processed. |
517 | | - """ |
518 | | - exit_request = MagicMock() |
519 | | - exit_request.vault = VAULT_1 |
520 | | - exit_request.position_ticket = 1234 |
521 | | - params = make_harvest_params() |
522 | | - with _mock_update_vaults_state( |
523 | | - meta_vaults_map={VAULT_1: MagicMock()}, |
524 | | - harvest_params={VAULT_2: params}, |
525 | | - update_state_exception=ClaimDelayNotPassedException(exit_request), |
526 | | - ) as mocks: |
527 | | - await update_vaults_state(vaults=[VAULT_1, VAULT_2], block_number=BlockNumber(100)) |
528 | | - mocks['update_state'].assert_awaited_once() |
529 | | - mocks['redeemer'].batch_update_vault_state.assert_awaited_once_with({VAULT_2: params}) |
530 | | - |
531 | 512 | @pytest.mark.parametrize( |
532 | 513 | 'has_params, expected_multicall_calls', |
533 | 514 | [(True, 1), (False, 0)], |
|
0 commit comments