Skip to content

Commit 1293251

Browse files
committed
fix(sdk): correct rustfmt formatting in timeout test assertions
1 parent ed8eb08 commit 1293251

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

opentelemetry-sdk/src/logs/batch_log_processor.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,10 @@ mod tests {
11221122

11231123
// Use a short timeout to avoid slow tests
11241124
let result = processor.shutdown_with_timeout(Duration::from_millis(500));
1125-
assert!(result.is_err(), "Expected timeout error from hanging exporter");
1125+
assert!(
1126+
result.is_err(),
1127+
"Expected timeout error from hanging exporter"
1128+
);
11261129
}
11271130

11281131
/// A slow exporter that counts the number of logs received.

opentelemetry-sdk/src/trace/span_processor.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,10 @@ mod tests {
16041604

16051605
// Use a short timeout to avoid slow tests
16061606
let result = processor.shutdown_with_timeout(Duration::from_millis(500));
1607-
assert!(result.is_err(), "Expected timeout error from hanging exporter");
1607+
assert!(
1608+
result.is_err(),
1609+
"Expected timeout error from hanging exporter"
1610+
);
16081611
}
16091612

16101613
#[tokio::test(flavor = "multi_thread", worker_threads = 4)]

0 commit comments

Comments
 (0)