mirror of
https://github.com/sigp/lighthouse.git
synced 2026-06-29 10:54:24 +00:00
fix beacon chain / http_api tests
This commit is contained in:
@@ -279,6 +279,8 @@ impl InvalidPayloadRig {
|
|||||||
} else {
|
} else {
|
||||||
mock_execution_layer.server.full_payload_verification();
|
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
|
let root = self
|
||||||
.harness
|
.harness
|
||||||
.process_block(slot, block.canonical_root(), (block.clone(), blobs.clone()))
|
.process_block(slot, block.canonical_root(), (block.clone(), blobs.clone()))
|
||||||
|
|||||||
@@ -134,6 +134,9 @@ async fn el_error_on_new_payload() {
|
|||||||
assert!(!api_response.is_optimistic);
|
assert!(!api_response.is_optimistic);
|
||||||
assert!(!api_response.is_syncing);
|
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.
|
// Processing a block successfully should remove the status.
|
||||||
mock_el.server.set_new_payload_status(
|
mock_el.server.set_new_payload_status(
|
||||||
block_hash,
|
block_hash,
|
||||||
|
|||||||
Reference in New Issue
Block a user