diff --git a/src/views/jobManager/selfCodes/selfCodesTest.ts b/src/views/jobManager/selfCodes/selfCodesTest.ts index e3c3bfa7..aeed391b 100644 --- a/src/views/jobManager/selfCodes/selfCodesTest.ts +++ b/src/views/jobManager/selfCodes/selfCodesTest.ts @@ -1,8 +1,7 @@ import { OldSQLJob } from "../../../connection/sqlJob"; import { TestCase } from "../../../testing"; import assert from "assert"; -import { SelfCodeNode, SelfValue } from "./nodes"; -import { QueryResult } from "../../../connection/types"; +import { SelfValue } from "./nodes"; export const selfCodeTests = [ { @@ -30,9 +29,9 @@ export function testSelfCodes(): TestCase[] { await newJob.connect(); await newJob.setSelfState(test.code as SelfValue); try { - await newJob.query(test.sql).run(); + await newJob.query(test.sql).execute(); } catch (e) {} - let result = await newJob.query(content, {parameters: [newJob.id]}).run(); + let result = await newJob.query(content, {parameters: [newJob.id]}).execute(); assert(result.data[0]['MATCHES'] >= 1); newJob.close();