From 12e442c2e6476d6f29abca385e603e3225df92ed Mon Sep 17 00:00:00 2001 From: Eitan Seri-Levi Date: Mon, 6 Jan 2025 16:42:58 +0700 Subject: [PATCH] Fix failing test --- beacon_node/http_api/tests/tests.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/beacon_node/http_api/tests/tests.rs b/beacon_node/http_api/tests/tests.rs index a4f29c6f44..df8b346460 100644 --- a/beacon_node/http_api/tests/tests.rs +++ b/beacon_node/http_api/tests/tests.rs @@ -1825,6 +1825,9 @@ impl ApiTester { } pub async fn test_post_beacon_pool_attestations_valid_v2(mut self) -> Self { + if self.single_attestations.is_empty() { + return; + } let fork_name = self .single_attestations .first() @@ -1879,6 +1882,9 @@ impl ApiTester { 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(); for attestation in &self.single_attestations { let mut invalid_attestation = attestation.clone();