Skip to content

Commit a9aa123

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

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

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
@@ -1666,7 +1666,10 @@ mod tests {
16661666

16671667
// Use a short timeout to avoid slow tests
16681668
let result = processor.shutdown_with_timeout(Duration::from_millis(500));
1669-
assert!(result.is_err(), "Expected timeout error from hanging exporter");
1669+
assert!(
1670+
result.is_err(),
1671+
"Expected timeout error from hanging exporter"
1672+
);
16701673
}
16711674

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

0 commit comments

Comments
 (0)