Skip to content

Temp fix flaky test for BatchSpanprocessors #2671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions opentelemetry-sdk/src/trace/span_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,7 @@ mod tests {
processor.on_end(span);
}

tokio::time::sleep(Duration::from_millis(200)).await;
tokio::time::sleep(Duration::from_millis(1000)).await;

let exported_spans = exporter_shared.lock().unwrap();
assert_eq!(exported_spans.len(), 4);
Expand All @@ -1292,7 +1292,7 @@ mod tests {
processor.on_end(span);
}

tokio::time::sleep(Duration::from_millis(200)).await;
tokio::time::sleep(Duration::from_millis(1000)).await;

let exported_spans = exporter_shared.lock().unwrap();
assert_eq!(exported_spans.len(), 4);
Expand Down Expand Up @@ -1327,7 +1327,7 @@ mod tests {
}

// Allow time for batching and export
tokio::time::sleep(Duration::from_millis(200)).await;
tokio::time::sleep(Duration::from_millis(1000)).await;

// Verify exported spans
let exported_spans = exporter_shared.lock().unwrap();
Expand Down