Skip to content

Commit c6b1576

Browse files
committed
fix(sdk): correct rustfmt formatting in timeout test assertions
1 parent 0b70ef7 commit c6b1576

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
@@ -1150,7 +1150,10 @@ mod tests {
11501150

11511151
// Use a short timeout to avoid slow tests
11521152
let result = processor.shutdown_with_timeout(Duration::from_millis(500));
1153-
assert!(result.is_err(), "Expected timeout error from hanging exporter");
1153+
assert!(
1154+
result.is_err(),
1155+
"Expected timeout error from hanging exporter"
1156+
);
11541157
}
11551158

11561159
/// 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
@@ -1720,7 +1720,10 @@ mod tests {
17201720

17211721
// Use a short timeout to avoid slow tests
17221722
let result = processor.shutdown_with_timeout(Duration::from_millis(500));
1723-
assert!(result.is_err(), "Expected timeout error from hanging exporter");
1723+
assert!(
1724+
result.is_err(),
1725+
"Expected timeout error from hanging exporter"
1726+
);
17241727
}
17251728

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

0 commit comments

Comments
 (0)