diff --git a/beacon_node/operation_pool/src/lib.rs b/beacon_node/operation_pool/src/lib.rs index a94414f734..fa5fd363d4 100644 --- a/beacon_node/operation_pool/src/lib.rs +++ b/beacon_node/operation_pool/src/lib.rs @@ -2244,9 +2244,9 @@ mod release_tests { #[tokio::test] async fn payload_attestation_packs_bits_from_ptc_positions() { let spec = test_spec::(); - if !spec.gloas_fork_epoch.is_some_and(|e| e == Epoch::new(0)) { + if spec.gloas_fork_epoch.is_none() { return; - } + }; let num_validators = 64; let harness = get_harness::(num_validators, Some(spec.clone())); @@ -2301,9 +2301,9 @@ mod release_tests { #[tokio::test] async fn payload_attestation_filters_wrong_root() { let spec = test_spec::(); - if !spec.gloas_fork_epoch.is_some_and(|e| e == Epoch::new(0)) { + if spec.gloas_fork_epoch.is_none() { return; - } + }; let num_validators = 64; let harness = get_harness::(num_validators, Some(spec.clone())); @@ -2348,9 +2348,9 @@ mod release_tests { #[tokio::test] async fn payload_attestation_non_ptc_validator_skipped() { let spec = test_spec::(); - if !spec.gloas_fork_epoch.is_some_and(|e| e == Epoch::new(0)) { + if spec.gloas_fork_epoch.is_none() { return; - } + }; let num_validators = 64; let harness = get_harness::(num_validators, Some(spec.clone()));