From 47e7f56b1447118e770b7c360265156d2bb0f597 Mon Sep 17 00:00:00 2001 From: t8y2 Date: Wed, 23 Sep 2026 16:58:12 +0800 Subject: [PATCH] fix(drivers): use expect_err in starrocks live setup test --- crates/dbx-drivers/tests/live_starrocks_setup_compatibility.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/dbx-drivers/tests/live_starrocks_setup_compatibility.rs b/crates/dbx-drivers/tests/live_starrocks_setup_compatibility.rs index 2f630c70a4..f7621aa945 100644 --- a/crates/dbx-drivers/tests/live_starrocks_setup_compatibility.rs +++ b/crates/dbx-drivers/tests/live_starrocks_setup_compatibility.rs @@ -50,7 +50,6 @@ async fn live_starrocks_group_concat_setup_fallback() { let invalid_setup = ["SET dbx_nonexistent_setup_variable = 1".to_string()]; let error = mysql::connect_with_ca_cert_pool_limit_idle_and_setup(&url, None, timeout, 2, None, &invalid_setup) .await - .err() - .expect("invalid user setup must not be swallowed by the compatibility retry"); + .expect_err("invalid user setup must not be swallowed by the compatibility retry"); assert!(error.contains("dbx_nonexistent_setup_variable"), "{error}"); }