@@ -12,7 +12,7 @@ use crate::arrow::{
1212} ;
1313use crate :: checkpoint:: create_last_checkpoint_data;
1414use crate :: engine:: arrow_data:: ArrowEngineData ;
15- use crate :: engine:: default:: { executor :: tokio :: TokioBackgroundExecutor , DefaultEngine } ;
15+ use crate :: engine:: default:: DefaultEngine ;
1616use crate :: log_replay:: HasSelectionVector ;
1717use crate :: schema:: { DataType as KernelDataType , StructField , StructType } ;
1818use crate :: utils:: test_utils:: Action ;
@@ -59,7 +59,7 @@ fn test_deleted_file_retention_timestamp() -> DeltaResult<()> {
5959#[ test]
6060fn test_create_checkpoint_metadata_batch ( ) -> DeltaResult < ( ) > {
6161 let ( store, _) = new_in_memory_store ( ) ;
62- let engine = DefaultEngine :: new ( store. clone ( ) , Arc :: new ( TokioBackgroundExecutor :: new ( ) ) ) ;
62+ let engine = DefaultEngine :: new ( store. clone ( ) ) ;
6363
6464 // 1st commit (version 0) - metadata and protocol actions
6565 // Protocol action does not include the v2Checkpoint reader/writer feature.
@@ -115,7 +115,7 @@ fn test_create_last_checkpoint_data() -> DeltaResult<()> {
115115 let add_actions_counter = 75 ;
116116 let size_in_bytes: i64 = 1024 * 1024 ; // 1MB
117117 let ( store, _) = new_in_memory_store ( ) ;
118- let engine = DefaultEngine :: new ( store. clone ( ) , Arc :: new ( TokioBackgroundExecutor :: new ( ) ) ) ;
118+ let engine = DefaultEngine :: new ( store. clone ( ) ) ;
119119
120120 // Create last checkpoint metadata
121121 let last_checkpoint_batch = create_last_checkpoint_data (
@@ -276,7 +276,7 @@ fn read_last_checkpoint_file(store: &Arc<InMemory>) -> DeltaResult<Value> {
276276#[ test]
277277fn test_v1_checkpoint_latest_version_by_default ( ) -> DeltaResult < ( ) > {
278278 let ( store, _) = new_in_memory_store ( ) ;
279- let engine = DefaultEngine :: new ( store. clone ( ) , Arc :: new ( TokioBackgroundExecutor :: new ( ) ) ) ;
279+ let engine = DefaultEngine :: new ( store. clone ( ) ) ;
280280
281281 // 1st commit: adds `fake_path_1`
282282 write_commit_to_store ( & store, vec ! [ create_add_action( "fake_path_1" ) ] , 0 ) ?;
@@ -346,7 +346,7 @@ fn test_v1_checkpoint_latest_version_by_default() -> DeltaResult<()> {
346346#[ test]
347347fn test_v1_checkpoint_specific_version ( ) -> DeltaResult < ( ) > {
348348 let ( store, _) = new_in_memory_store ( ) ;
349- let engine = DefaultEngine :: new ( store. clone ( ) , Arc :: new ( TokioBackgroundExecutor :: new ( ) ) ) ;
349+ let engine = DefaultEngine :: new ( store. clone ( ) ) ;
350350
351351 // 1st commit (version 0) - metadata and protocol actions
352352 // Protocol action does not include the v2Checkpoint reader/writer feature.
@@ -408,7 +408,7 @@ fn test_v1_checkpoint_specific_version() -> DeltaResult<()> {
408408#[ test]
409409fn test_finalize_errors_if_checkpoint_data_iterator_is_not_exhausted ( ) -> DeltaResult < ( ) > {
410410 let ( store, _) = new_in_memory_store ( ) ;
411- let engine = DefaultEngine :: new ( store. clone ( ) , Arc :: new ( TokioBackgroundExecutor :: new ( ) ) ) ;
411+ let engine = DefaultEngine :: new ( store. clone ( ) ) ;
412412
413413 // 1st commit (version 0) - metadata and protocol actions
414414 write_commit_to_store (
@@ -450,7 +450,7 @@ fn test_finalize_errors_if_checkpoint_data_iterator_is_not_exhausted() -> DeltaR
450450#[ test]
451451fn test_v2_checkpoint_supported_table ( ) -> DeltaResult < ( ) > {
452452 let ( store, _) = new_in_memory_store ( ) ;
453- let engine = DefaultEngine :: new ( store. clone ( ) , Arc :: new ( TokioBackgroundExecutor :: new ( ) ) ) ;
453+ let engine = DefaultEngine :: new ( store. clone ( ) ) ;
454454
455455 // 1st commit: adds `fake_path_2` & removes `fake_path_1`
456456 write_commit_to_store (
@@ -522,7 +522,7 @@ fn test_v2_checkpoint_supported_table() -> DeltaResult<()> {
522522#[ test]
523523fn test_no_checkpoint_staged_commits ( ) -> DeltaResult < ( ) > {
524524 let ( store, _) = new_in_memory_store ( ) ;
525- let engine = DefaultEngine :: new ( store. clone ( ) , Arc :: new ( TokioBackgroundExecutor :: new ( ) ) ) ;
525+ let engine = DefaultEngine :: new ( store. clone ( ) ) ;
526526
527527 // normal commit
528528 write_commit_to_store (
0 commit comments