Skip to content

Commit eca1ce8

Browse files
authored
Temp fix flaky test for BatchSpanprocessors (#2671)
1 parent a9a5cbf commit eca1ce8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

opentelemetry-sdk/src/trace/span_processor.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ mod tests {
12681268
processor.on_end(span);
12691269
}
12701270

1271-
tokio::time::sleep(Duration::from_millis(200)).await;
1271+
tokio::time::sleep(Duration::from_millis(1000)).await;
12721272

12731273
let exported_spans = exporter_shared.lock().unwrap();
12741274
assert_eq!(exported_spans.len(), 4);
@@ -1292,7 +1292,7 @@ mod tests {
12921292
processor.on_end(span);
12931293
}
12941294

1295-
tokio::time::sleep(Duration::from_millis(200)).await;
1295+
tokio::time::sleep(Duration::from_millis(1000)).await;
12961296

12971297
let exported_spans = exporter_shared.lock().unwrap();
12981298
assert_eq!(exported_spans.len(), 4);
@@ -1327,7 +1327,7 @@ mod tests {
13271327
}
13281328

13291329
// Allow time for batching and export
1330-
tokio::time::sleep(Duration::from_millis(200)).await;
1330+
tokio::time::sleep(Duration::from_millis(1000)).await;
13311331

13321332
// Verify exported spans
13331333
let exported_spans = exporter_shared.lock().unwrap();

0 commit comments

Comments
 (0)