test(sidebar): extend metadata loading test timeout

This commit is contained in:
t8y2 committed 2026-07-28 01:46:36 +08:00
1 parent 1806bbfe61
commit 94bc0e0923
1 file changed
+2 -2
@@ -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([