Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(drivers): use expect_err in starrocks live setup test

t8y247e7f56b1447
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}");
}