Skip to content

Commit dae2f1d

Browse files
committed
fix beacon chain / http_api tests
1 parent be959ab commit dae2f1d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

beacon_node/beacon_chain/tests/payload_invalidation.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ impl InvalidPayloadRig {
279279
} else {
280280
mock_execution_layer.server.full_payload_verification();
281281
}
282+
// wait for the new payload cache to timeout
283+
tokio::time::sleep(std::time::Duration::from_secs(12)).await;
282284
let root = self
283285
.harness
284286
.process_block(slot, block.canonical_root(), (block.clone(), blobs.clone()))

beacon_node/http_api/tests/status_tests.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ async fn el_error_on_new_payload() {
134134
assert!(!api_response.is_optimistic);
135135
assert!(!api_response.is_syncing);
136136

137+
// sleep for just past the cache TTL
138+
tokio::time::sleep(std::time::Duration::from_secs(12)).await;
139+
137140
// Processing a block successfully should remove the status.
138141
mock_el.server.set_new_payload_status(
139142
block_hash,

0 commit comments

Comments
 (0)