@@ -553,6 +553,7 @@ mod tests {
553553 use opentelemetry:: InstrumentationLibrary ;
554554 use opentelemetry:: Key ;
555555 use opentelemetry:: { logs:: LogResult , KeyValue } ;
556+ use std:: panic;
556557 use std:: sync:: { Arc , Mutex } ;
557558 use std:: time:: Duration ;
558559
@@ -1016,7 +1017,7 @@ mod tests {
10161017 }
10171018
10181019 #[ test]
1019- fn test_sync_exporter_without_runtime ( ) {
1020+ fn test_simple_processor_sync_exporter_without_runtime ( ) {
10201021 let exporter = SyncLogExporter {
10211022 logs : Arc :: new ( Mutex :: new ( Vec :: new ( ) ) ) ,
10221023 } ;
@@ -1033,7 +1034,7 @@ mod tests {
10331034 }
10341035
10351036 #[ tokio:: test( flavor = "multi_thread" , worker_threads = 1 ) ]
1036- async fn test_sync_exporter_with_runtime ( ) {
1037+ async fn test_simple_processor_sync_exporter_with_runtime ( ) {
10371038 let exporter = SyncLogExporter {
10381039 logs : Arc :: new ( Mutex :: new ( Vec :: new ( ) ) ) ,
10391040 } ;
@@ -1050,7 +1051,7 @@ mod tests {
10501051 }
10511052
10521053 #[ tokio:: test( flavor = "current_thread" ) ]
1053- async fn test_sync_exporter_with_current_thread_runtime ( ) {
1054+ async fn test_simple_processor_sync_exporter_with_current_thread_runtime ( ) {
10541055 let exporter = SyncLogExporter {
10551056 logs : Arc :: new ( Mutex :: new ( Vec :: new ( ) ) ) ,
10561057 } ;
@@ -1100,10 +1101,8 @@ mod tests {
11001101 fn set_resource ( & mut self , _resource : & Resource ) { }
11011102 }
11021103
1103- use std:: panic;
1104-
11051104 #[ test]
1106- fn test_async_exporter_without_runtime ( ) {
1105+ fn test_simple_processor_async_exporter_without_runtime ( ) {
11071106 // Use `catch_unwind` to catch the panic caused by missing Tokio runtime
11081107 let result = panic:: catch_unwind ( || {
11091108 let exporter = AsyncLogExporter {
@@ -1131,7 +1130,7 @@ mod tests {
11311130 }
11321131
11331132 #[ tokio:: test( flavor = "multi_thread" , worker_threads = 1 ) ]
1134- async fn test_async_exporter_with_runtime ( ) {
1133+ async fn test_simple_processor_async_exporter_with_runtime ( ) {
11351134 let exporter = AsyncLogExporter {
11361135 logs : Arc :: new ( Mutex :: new ( Vec :: new ( ) ) ) ,
11371136 } ;
@@ -1149,7 +1148,7 @@ mod tests {
11491148
11501149 #[ tokio:: test( flavor = "current_thread" ) ]
11511150 #[ ignore] // This test hangs as of now.
1152- async fn test_async_exporter_with_current_thread_runtime ( ) {
1151+ async fn test_simple_processor_async_exporter_with_current_thread_runtime ( ) {
11531152 let exporter = AsyncLogExporter {
11541153 logs : Arc :: new ( Mutex :: new ( Vec :: new ( ) ) ) ,
11551154 } ;
0 commit comments