Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit 28d8b2e

Browse files
authored
Merge pull request #699 from chainbound/jonas/fix/flaky-test
fix(sidecar): flaky head tracker test
2 parents 401b5c6 + 492630d commit 28d8b2e

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

bolt-sidecar/src/common/backoff.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ mod tests {
177177
}
178178

179179
#[tokio::test]
180+
#[ignore = "Flaky test, jitter can influence outcome"]
180181
async fn test_exponential_backoff_timing() {
181182
let counter = Arc::new(Mutex::new(Counter::new(3))); // Fail 3 times, succeed on 4th
182183
let start_time = Instant::now();

bolt-sidecar/src/state/head_tracker.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use beacon_api_client::Topic;
33
use futures::StreamExt;
44
use std::time::Duration;
55
use tokio::{sync::broadcast, task::AbortHandle, time::sleep};
6-
use tracing::warn;
6+
use tracing::{trace, warn};
77

88
use crate::client::BeaconClient;
99

@@ -42,6 +42,7 @@ impl HeadTracker {
4242

4343
let task = tokio::spawn(async move {
4444
loop {
45+
trace!(endpoint = %beacon_client.endpoint, "Subscribing to new head events...");
4546
let mut event_stream = match beacon_client.get_events::<NewHeadsTopic>().await {
4647
Ok(events) => events,
4748
Err(err) => {
@@ -51,6 +52,8 @@ impl HeadTracker {
5152
}
5253
};
5354

55+
trace!(endpoint = %beacon_client.endpoint, "Subscribed to new head events");
56+
5457
let event = match event_stream.next().await {
5558
Some(Ok(event)) => event,
5659
Some(Err(err)) => {

bolt-sidecar/src/test_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use crate::{
3434
const EXECUTION_API_URL: &str = "https://geth-holesky.bolt.chainbound.io";
3535

3636
/// The URL of the test beacon client HTTP API.
37-
const BEACON_API_URL: &str = "https://lighthouse-holesky.bolt.chainbound.io";
37+
const BEACON_API_URL: &str = "http://remotebeast:44400";
3838

3939
/// The URL of the test engine client HTTP API.
4040
///

0 commit comments

Comments
 (0)