fix: try to fix unstable fuzz test (#4003)

fix: ignore PoolTimedOut
This commit is contained in:
Weny Xu
2024-05-21 21:57:09 +09:00
committed by GitHub
parent 56aed6e6ff
commit 43bf7bffd0

View File

@@ -144,6 +144,11 @@ async fn execute_unstable_create_table(
info!("Create table: {sql}, result: {result:?}");
}
Err(err) => {
// FIXME(weny): support to retry it later.
if matches!(err, sqlx::Error::PoolTimedOut { .. }) {
warn!("ignore pool timeout, sql: {sql}");
continue;
}
let state = *rx.borrow();
ensure!(
!state.health(),