Skip to content

Commit 032fefe

Browse files
committed
chore: remove test_envelope_post_missing_consensus_version_header
1 parent fbd6b9d commit 032fefe

1 file changed

Lines changed: 0 additions & 36 deletions

File tree

beacon_node/http_api/tests/tests.rs

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5025,31 +5025,6 @@ impl ApiTester {
50255025
self
50265026
}
50275027

5028-
pub async fn test_envelope_post_missing_consensus_version_header(self) -> Self {
5029-
if !self.chain.spec.is_gloas_scheduled() {
5030-
return self;
5031-
}
5032-
5033-
let url = self
5034-
.client
5035-
.post_beacon_execution_payload_envelope_path(None)
5036-
.unwrap();
5037-
let response = reqwest::Client::new()
5038-
.post(url)
5039-
.header("Content-Type", "application/json")
5040-
.body(b"{}".to_vec())
5041-
.send()
5042-
.await
5043-
.unwrap();
5044-
assert_eq!(
5045-
response.status(),
5046-
StatusCode::BAD_REQUEST,
5047-
"expected 400 when Eth-Consensus-Version header is missing"
5048-
);
5049-
5050-
self
5051-
}
5052-
50535028
/// Regression test: publishing an envelope via the HTTP API must import it locally so
50545029
/// that `produce_payload_attestation_data` returns `payload_present = true`. Without
50555030
/// local import, the `envelope_times_cache` is never populated and PTC voters on the
@@ -8890,17 +8865,6 @@ async fn envelope_post_equivocation_returns_400() {
88908865
.await;
88918866
}
88928867

8893-
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
8894-
async fn envelope_post_missing_consensus_version_header() {
8895-
if !fork_name_from_env().is_some_and(|f| f.gloas_enabled()) {
8896-
return;
8897-
}
8898-
ApiTester::new_with_hard_forks()
8899-
.await
8900-
.test_envelope_post_missing_consensus_version_header()
8901-
.await;
8902-
}
8903-
89048868
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
89058869
async fn post_beacon_pool_payload_attestations_valid() {
89068870
if !fork_name_from_env().is_some_and(|f| f.gloas_enabled()) {

0 commit comments

Comments
 (0)