fix(ci): copy connection-types in docker image and align auto-commit tests
This commit is contained in:
4 files changed
+12
-2
No files matched your search
@@ -794,6 +794,8 @@ describe("queryStore hidden primary key editing", () => {
|
||||
const { useQueryStore } = await import("@/stores/queryStore");
|
||||
const store = useQueryStore();
|
||||
const tabId = store.createTab("oracle-1", "ORCL", "Query");
|
||||
// Tabs default to auto-commit; exercise the explicit manual-transaction path.
|
||||
store.setAutoCommit(tabId, false);
|
||||
const execution = store.executeTabSql(tabId, "SELECT t.* FROM APP.WIDE_TABLE t");
|
||||
|
||||
await vi.waitFor(() => expect(listIndexes).toHaveBeenCalled());
|
||||
@@ -830,6 +832,8 @@ describe("queryStore hidden primary key editing", () => {
|
||||
const { useQueryStore } = await import("@/stores/queryStore");
|
||||
const store = useQueryStore();
|
||||
const tabId = store.createTab("oracle-1", "ORCL", "Query");
|
||||
// Tabs default to auto-commit; exercise the explicit manual-transaction path.
|
||||
store.setAutoCommit(tabId, false);
|
||||
const execution = store.executeTabSql(tabId, "SELECT t.* FROM APP.WIDE_TABLE t");
|
||||
|
||||
await vi.waitFor(() => expect(listIndexes).toHaveBeenCalled());
|
||||
|
||||
@@ -102,6 +102,8 @@ describe("queryStore manual transaction expiry recovery", () => {
|
||||
const { useQueryStore } = await import("@/stores/queryStore");
|
||||
const store = useQueryStore();
|
||||
const tabId = store.createTab("oracle-1", "ORCL", "Query", "query", "APP");
|
||||
// Tabs default to auto-commit; the expiry recovery path only applies to manual transactions.
|
||||
store.setAutoCommit(tabId, false);
|
||||
|
||||
await store.executeTabSql(tabId, "UPDATE USERS SET ACTIVE = 1");
|
||||
await store.executeTabSql(tabId, "UPDATE USERS SET ACTIVE = 1");
|
||||
|
||||
Reference in new issue
Block a user