mirror of
https://github.com/sigp/lighthouse.git
synced 2026-06-10 09:37:38 +00:00
Fix lint and incorrect condition
This commit is contained in:
@@ -2244,9 +2244,9 @@ mod release_tests {
|
|||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn payload_attestation_packs_bits_from_ptc_positions() {
|
async fn payload_attestation_packs_bits_from_ptc_positions() {
|
||||||
let spec = test_spec::<MinimalEthSpec>();
|
let spec = test_spec::<MinimalEthSpec>();
|
||||||
if !spec.gloas_fork_epoch.is_some_and(|e| e == Epoch::new(0)) {
|
if spec.gloas_fork_epoch.is_none() {
|
||||||
return;
|
return;
|
||||||
}
|
};
|
||||||
|
|
||||||
let num_validators = 64;
|
let num_validators = 64;
|
||||||
let harness = get_harness::<MinimalEthSpec>(num_validators, Some(spec.clone()));
|
let harness = get_harness::<MinimalEthSpec>(num_validators, Some(spec.clone()));
|
||||||
@@ -2301,9 +2301,9 @@ mod release_tests {
|
|||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn payload_attestation_filters_wrong_root() {
|
async fn payload_attestation_filters_wrong_root() {
|
||||||
let spec = test_spec::<MinimalEthSpec>();
|
let spec = test_spec::<MinimalEthSpec>();
|
||||||
if !spec.gloas_fork_epoch.is_some_and(|e| e == Epoch::new(0)) {
|
if spec.gloas_fork_epoch.is_none() {
|
||||||
return;
|
return;
|
||||||
}
|
};
|
||||||
|
|
||||||
let num_validators = 64;
|
let num_validators = 64;
|
||||||
let harness = get_harness::<MinimalEthSpec>(num_validators, Some(spec.clone()));
|
let harness = get_harness::<MinimalEthSpec>(num_validators, Some(spec.clone()));
|
||||||
@@ -2348,9 +2348,9 @@ mod release_tests {
|
|||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn payload_attestation_non_ptc_validator_skipped() {
|
async fn payload_attestation_non_ptc_validator_skipped() {
|
||||||
let spec = test_spec::<MinimalEthSpec>();
|
let spec = test_spec::<MinimalEthSpec>();
|
||||||
if !spec.gloas_fork_epoch.is_some_and(|e| e == Epoch::new(0)) {
|
if spec.gloas_fork_epoch.is_none() {
|
||||||
return;
|
return;
|
||||||
}
|
};
|
||||||
|
|
||||||
let num_validators = 64;
|
let num_validators = 64;
|
||||||
let harness = get_harness::<MinimalEthSpec>(num_validators, Some(spec.clone()));
|
let harness = get_harness::<MinimalEthSpec>(num_validators, Some(spec.clone()));
|
||||||
|
|||||||
Reference in New Issue
Block a user