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。

test(sidebar): extend metadata loading test timeout

t8y294bc0e0923e0
diff --git a/apps/desktop/src/stores/__tests__/connectionStore.metadataLoading.spec.ts b/apps/desktop/src/stores/__tests__/connectionStore.metadataLoading.spec.ts
index 57cb7d4c7c..f5a61e39e2 100644
--- a/apps/desktop/src/stores/__tests__/connectionStore.metadataLoading.spec.ts
+++ b/apps/desktop/src/stores/__tests__/connectionStore.metadataLoading.spec.ts
@@ -132,7 +132,7 @@ describe("connectionStore metadata loading", () => {
expect(store.activeConnectionId).toBe(active.id);
expect(nodes.map((node) => node.isExpanded)).toEqual([true, false, false]);
expect(filterSidebarTree(nodes, "dajia", new Set()).map((node) => node.id)).toEqual([active.id, connected.id]);
- });
+ }, 10_000);
it("does not collapse a connection whose normal root load is already in flight", async () => {
let resolveDatabases!: (databases: Array<{ name: string; comment: null }>) => void;
@@ -174,7 +174,7 @@ describe("connectionStore metadata loading", () => {
expect(listDatabases).toHaveBeenCalledTimes(1);
expect(node.isExpanded).toBe(true);
- });
+ }, 10_000);
it("discovers schema nodes for unknown generic JDBC databases", async () => {
const listSchemaInfos = vi.fn().mockResolvedValue([