Skip to content

Commit 8a83732

Browse files
committed
remove unnecessary multi_thread flavor
1 parent c51133b commit 8a83732

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

src/datafusion/engine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ mod tests {
637637
);
638638
}
639639

640-
#[tokio::test(flavor = "multi_thread")]
640+
#[tokio::test]
641641
async fn test_builder_pattern_missing_fields() {
642642
// Test that builder fails when required fields are missing
643643
let temp_dir = TempDir::new().unwrap();

tests/catalog_manager_suite.rs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ macro_rules! catalog_manager_tests {
6060
mod $module {
6161
use super::*;
6262

63-
#[tokio::test(flavor = "multi_thread")]
63+
#[tokio::test]
6464
async fn catalog_initialization() {
6565
let ctx = super::$setup_fn().await;
6666
let catalog = ctx.manager();
@@ -69,7 +69,7 @@ macro_rules! catalog_manager_tests {
6969
assert!(connections.is_empty());
7070
}
7171

72-
#[tokio::test(flavor = "multi_thread")]
72+
#[tokio::test]
7373
async fn add_connection() {
7474
let ctx = super::$setup_fn().await;
7575
let catalog = ctx.manager();
@@ -85,7 +85,7 @@ macro_rules! catalog_manager_tests {
8585
assert_eq!(connections[0].name, "test_db");
8686
}
8787

88-
#[tokio::test(flavor = "multi_thread")]
88+
#[tokio::test]
8989
async fn get_connection() {
9090
let ctx = super::$setup_fn().await;
9191
let catalog = ctx.manager();
@@ -104,7 +104,7 @@ macro_rules! catalog_manager_tests {
104104
assert!(missing.is_none());
105105
}
106106

107-
#[tokio::test(flavor = "multi_thread")]
107+
#[tokio::test]
108108
async fn add_table() {
109109
let ctx = super::$setup_fn().await;
110110
let catalog = ctx.manager();
@@ -126,7 +126,7 @@ macro_rules! catalog_manager_tests {
126126
assert_eq!(first_id, second_id);
127127
}
128128

129-
#[tokio::test(flavor = "multi_thread")]
129+
#[tokio::test]
130130
async fn get_table() {
131131
let ctx = super::$setup_fn().await;
132132
let catalog = ctx.manager();
@@ -155,7 +155,7 @@ macro_rules! catalog_manager_tests {
155155
assert!(missing.is_none());
156156
}
157157

158-
#[tokio::test(flavor = "multi_thread")]
158+
#[tokio::test]
159159
async fn update_table_sync() {
160160
let ctx = super::$setup_fn().await;
161161
let catalog = ctx.manager();
@@ -184,7 +184,7 @@ macro_rules! catalog_manager_tests {
184184
assert!(table.last_sync.is_some());
185185
}
186186

187-
#[tokio::test(flavor = "multi_thread")]
187+
#[tokio::test]
188188
async fn list_tables_multiple_connections() {
189189
let ctx = super::$setup_fn().await;
190190
let catalog = ctx.manager();
@@ -229,7 +229,7 @@ macro_rules! catalog_manager_tests {
229229
assert!(conn2_tables.iter().all(|t| t.connection_id == conn2));
230230
}
231231

232-
#[tokio::test(flavor = "multi_thread")]
232+
#[tokio::test]
233233
async fn list_tables_with_cached_status() {
234234
let ctx = super::$setup_fn().await;
235235
let catalog = ctx.manager();
@@ -274,7 +274,7 @@ macro_rules! catalog_manager_tests {
274274
assert!(not_cached.last_sync.is_none());
275275
}
276276

277-
#[tokio::test(flavor = "multi_thread")]
277+
#[tokio::test]
278278
async fn clear_connection_cache_metadata() {
279279
let ctx = super::$setup_fn().await;
280280
let catalog = ctx.manager();
@@ -308,7 +308,7 @@ macro_rules! catalog_manager_tests {
308308
assert!(table.last_sync.is_none());
309309
}
310310

311-
#[tokio::test(flavor = "multi_thread")]
311+
#[tokio::test]
312312
async fn delete_connection() {
313313
let ctx = super::$setup_fn().await;
314314
let catalog = ctx.manager();
@@ -340,7 +340,7 @@ macro_rules! catalog_manager_tests {
340340
.is_none());
341341
}
342342

343-
#[tokio::test(flavor = "multi_thread")]
343+
#[tokio::test]
344344
async fn clear_nonexistent_connection() {
345345
let ctx = super::$setup_fn().await;
346346
let catalog = ctx.manager();
@@ -349,7 +349,7 @@ macro_rules! catalog_manager_tests {
349349
assert!(err.unwrap_err().to_string().contains("not found"));
350350
}
351351

352-
#[tokio::test(flavor = "multi_thread")]
352+
#[tokio::test]
353353
async fn delete_nonexistent_connection() {
354354
let ctx = super::$setup_fn().await;
355355
let catalog = ctx.manager();
@@ -358,7 +358,7 @@ macro_rules! catalog_manager_tests {
358358
assert!(err.unwrap_err().to_string().contains("not found"));
359359
}
360360

361-
#[tokio::test(flavor = "multi_thread")]
361+
#[tokio::test]
362362
async fn clear_table_cache_metadata() {
363363
let ctx = super::$setup_fn().await;
364364
let catalog = ctx.manager();
@@ -410,7 +410,7 @@ macro_rules! catalog_manager_tests {
410410
assert!(orders_after.state_path.is_some());
411411
}
412412

413-
#[tokio::test(flavor = "multi_thread")]
413+
#[tokio::test]
414414
async fn clear_table_cache_metadata_nonexistent() {
415415
let ctx = super::$setup_fn().await;
416416
let catalog = ctx.manager();
@@ -428,7 +428,7 @@ macro_rules! catalog_manager_tests {
428428
assert!(err.unwrap_err().to_string().contains("not found"));
429429
}
430430

431-
#[tokio::test(flavor = "multi_thread")]
431+
#[tokio::test]
432432
async fn clear_table_without_cache() {
433433
let ctx = super::$setup_fn().await;
434434
let catalog = ctx.manager();
@@ -460,7 +460,7 @@ macro_rules! catalog_manager_tests {
460460
assert!(table_after.last_sync.is_none());
461461
}
462462

463-
#[tokio::test(flavor = "multi_thread")]
463+
#[tokio::test]
464464
async fn close_is_idempotent() {
465465
let ctx = super::$setup_fn().await;
466466
let catalog = ctx.manager();

0 commit comments

Comments
 (0)