mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
Fix failing test
This commit is contained in:
@@ -1825,6 +1825,9 @@ impl ApiTester {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub async fn test_post_beacon_pool_attestations_valid_v2(mut self) -> Self {
|
pub async fn test_post_beacon_pool_attestations_valid_v2(mut self) -> Self {
|
||||||
|
if self.single_attestations.is_empty() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
let fork_name = self
|
let fork_name = self
|
||||||
.single_attestations
|
.single_attestations
|
||||||
.first()
|
.first()
|
||||||
@@ -1879,6 +1882,9 @@ impl ApiTester {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
pub async fn test_post_beacon_pool_attestations_invalid_v2(mut self) -> Self {
|
pub async fn test_post_beacon_pool_attestations_invalid_v2(mut self) -> Self {
|
||||||
|
if self.single_attestations.is_empty() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
let mut attestations = Vec::new();
|
let mut attestations = Vec::new();
|
||||||
for attestation in &self.single_attestations {
|
for attestation in &self.single_attestations {
|
||||||
let mut invalid_attestation = attestation.clone();
|
let mut invalid_attestation = attestation.clone();
|
||||||
|
|||||||
Reference in New Issue
Block a user