Skip to content

Commit

Permalink
chore(fuzz): set acquire_timeout to 30s
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed May 11, 2024
1 parent 5b19814 commit f4811f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests-fuzz/targets/unstable/fuzz_create_table_standalone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use std::collections::HashMap;
use std::fs::create_dir_all;
use std::sync::atomic::AtomicBool;
use std::sync::Arc;
use std::time::Duration;

use common_telemetry::info;
use common_telemetry::tracing::warn;
Expand Down Expand Up @@ -96,6 +97,7 @@ fn generate_create_table_expr<R: Rng + 'static>(rng: &mut R) -> CreateTableExpr
async fn connect_mysql(addr: &str) -> Pool<MySql> {
loop {
match MySqlPoolOptions::new()
.acquire_timeout(Duration::from_secs(30))
.connect(&format!("mysql://{addr}/public"))
.await
{
Expand Down

0 comments on commit f4811f1

Please sign in to comment.