fix beacon chain / http_api tests

This commit is contained in:
Mark Mackey
2025-11-10 16:01:01 -06:00
parent be959ab4c3
commit dae2f1dcea
2 changed files with 5 additions and 0 deletions

View File

@@ -279,6 +279,8 @@ impl InvalidPayloadRig {
} else {
mock_execution_layer.server.full_payload_verification();
}
// wait for the new payload cache to timeout
tokio::time::sleep(std::time::Duration::from_secs(12)).await;
let root = self
.harness
.process_block(slot, block.canonical_root(), (block.clone(), blobs.clone()))

View File

@@ -134,6 +134,9 @@ async fn el_error_on_new_payload() {
assert!(!api_response.is_optimistic);
assert!(!api_response.is_syncing);
// sleep for just past the cache TTL
tokio::time::sleep(std::time::Duration::from_secs(12)).await;
// Processing a block successfully should remove the status.
mock_el.server.set_new_payload_status(
block_hash,