From 8a6a584cf3c35efdf82aab0c15cbc9431e0509ba Mon Sep 17 00:00:00 2001 From: filipriec Date: Wed, 23 Jul 2025 00:43:11 +0200 Subject: [PATCH] compiletime error in test fixed --- server/tests/mod.rs | 4 +-- server/tests/table_script/mod.rs | 25 ++++--------------- .../post_table_data_steel_decimal_test.rs | 2 +- 3 files changed, 8 insertions(+), 23 deletions(-) diff --git a/server/tests/mod.rs b/server/tests/mod.rs index 1a9e1dc..ed7a4b5 100644 --- a/server/tests/mod.rs +++ b/server/tests/mod.rs @@ -1,6 +1,6 @@ // tests/mod.rs -// pub mod tables_data; +pub mod tables_data; pub mod common; -pub mod table_script; +// pub mod table_script; // pub mod table_definition; diff --git a/server/tests/table_script/mod.rs b/server/tests/table_script/mod.rs index 05238ca..19c9e6e 100644 --- a/server/tests/table_script/mod.rs +++ b/server/tests/table_script/mod.rs @@ -1,22 +1,7 @@ // tests/table_script/mod.rs -pub mod post_scripts_integration_tests; -// pub mod prohibited_types_test; -// pub mod type_safety_comprehensive_tests; -// pub mod mathematical_operations_tests; -// pub mod comprehensive_error_scenarios_tests; -// // tests/table_script/mod.rs - -// mod post_scripts_tests; -// mod post_scripts_integration_tests; -// mod prohibited_types_test; -// mod type_safety_comprehensive_tests; -// mod mathematical_operations_tests; -// mod comprehensive_error_scenarios_tests; - -// pub use post_scripts_tests::*; -// pub use post_scripts_integration_tests::*; -// pub use prohibited_types_test::*; -// pub use type_safety_comprehensive_tests::*; -// pub use mathematical_operations_tests::*; -// pub use comprehensive_error_scenarios_tests::*; +mod post_scripts_integration_tests; +mod prohibited_types_test; +mod type_safety_comprehensive_tests; +mod mathematical_operations_tests; +mod comprehensive_error_scenarios_tests; diff --git a/server/tests/tables_data/post/post_table_data_steel_decimal_test.rs b/server/tests/tables_data/post/post_table_data_steel_decimal_test.rs index dd9a12c..0752fe5 100644 --- a/server/tests/tables_data/post/post_table_data_steel_decimal_test.rs +++ b/server/tests/tables_data/post/post_table_data_steel_decimal_test.rs @@ -31,7 +31,7 @@ async fn discover_steel_decimal_output( current_table: "test_table".to_string(), schema_id: 1, schema_name: "test_schema".to_string(), - row_data: input_data, + row_data: input_data.clone(), db_pool: Arc::new(pool.clone()), };