Skip to content

Commit 9c5f249

Browse files
authored
chore: adjust stack size of flaky ut (#15130)
* chore: adjust stack size of flaky ut * adjust test_fuzz_with_spill()
1 parent fa252c8 commit 9c5f249

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/query/ee/tests/it/aggregating_index/index_scan.rs

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use std::fmt::Display;
1717
use std::sync::Arc;
1818

1919
use databend_common_base::base::tokio;
20+
use databend_common_base::runtime::Runtime;
2021
use databend_common_exception::Result;
2122
use databend_common_expression::block_debug::pretty_format_blocks;
2223
use databend_common_expression::DataBlock;
@@ -62,16 +63,24 @@ async fn test_index_scan_agg_args_are_expression() -> Result<()> {
6263
test_index_scan_agg_args_are_expression_impl("native").await
6364
}
6465

65-
#[tokio::test(flavor = "multi_thread")]
66-
async fn test_fuzz() -> Result<()> {
67-
test_fuzz_impl("parquet", false).await?;
68-
test_fuzz_impl("native", false).await
66+
#[test]
67+
fn test_fuzz() -> Result<()> {
68+
let runtime = Runtime::with_worker_threads(2, None)?;
69+
runtime.block_on(async {
70+
test_fuzz_impl("parquet", false).await?;
71+
test_fuzz_impl("native", false).await
72+
})?;
73+
Ok(())
6974
}
7075

71-
#[tokio::test(flavor = "multi_thread")]
72-
async fn test_fuzz_with_spill() -> Result<()> {
73-
test_fuzz_impl("parquet", true).await?;
74-
test_fuzz_impl("native", true).await
76+
#[test]
77+
fn test_fuzz_with_spill() -> Result<()> {
78+
let runtime = Runtime::with_worker_threads(2, None)?;
79+
runtime.block_on(async {
80+
test_fuzz_impl("parquet", true).await?;
81+
test_fuzz_impl("native", true).await
82+
})?;
83+
Ok(())
7584
}
7685

7786
async fn plan_sql(ctx: Arc<QueryContext>, sql: &str) -> Result<Plan> {

0 commit comments

Comments
 (0)