Skip to content

Commit

Permalink
Workaround: add sleep calls
Browse files Browse the repository at this point in the history
AFAICT this is now needed because of open-telemetry/opentelemetry-rust#1830

(mentioned in https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry-sdk/CHANGELOG.md#v0240)

Replacing install_batch with install_simple also works.
  • Loading branch information
23Skidoo committed Jul 22, 2024
1 parent 4214325 commit fc179b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/e2e/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ async fn get_spans(f: impl FnOnce(), collector_url: &str) -> Option<Vec<Span>> {
f()
}

std::thread::sleep(std::time::Duration::from_secs(5));

let mut client = JaegerTestClient::new(query_api_url);

if !client.contain_service(&service_name).await {
Expand Down Expand Up @@ -152,6 +154,8 @@ async fn error_layer_enrich_errored_spans() {
});
};

std::thread::sleep(std::time::Duration::from_secs(5));

let mut client = JaegerTestClient::new(query_api_url);

let spans = if !client.contain_service(&service_name).await {
Expand Down

0 comments on commit fc179b1

Please sign in to comment.