remove spec minimal feature gating in tests (#4468)

* remove spec minimal feature gating in tests

* do merge transition in overflow cache test
This commit is contained in:
realbigsean
2023-07-14 15:59:15 -04:00
committed by GitHub
parent c3ef84bda2
commit 2b93c0eb0d
10 changed files with 28 additions and 42 deletions

View File

@@ -1,4 +1,3 @@
#![cfg(feature = "spec-minimal")]
use std::sync::Arc;
use crate::service::RequestId;
@@ -117,7 +116,7 @@ impl TestRig {
};
let (bundle, transactions) = execution_layer::test_utils::generate_random_blobs::<E>(
num_blobs,
&self.harness.chain.kzg.as_ref().unwrap(),
self.harness.chain.kzg.as_ref().unwrap(),
)
.unwrap();
@@ -148,8 +147,8 @@ impl TestRig {
block_parent_root: block.parent_root(),
proposer_index: block.message().proposer_index(),
blob: blob.clone(),
kzg_commitment: kzg_commitment.clone(),
kzg_proof: kzg_proof.clone(),
kzg_commitment,
kzg_proof,
});
}
}
@@ -1393,7 +1392,7 @@ mod deneb_only {
fn blobs_response_was_valid(mut self) -> Self {
self.rig.expect_empty_network();
if self.blobs.len() > 0 {
if !self.blobs.is_empty() {
self.rig.expect_block_process(ResponseType::Blob);
}
self