From f15e211440c50bd40e735ab219a470a3fe5f8e63 Mon Sep 17 00:00:00 2001 From: worksofliam Date: Tue, 3 Sep 2024 21:13:10 -0400 Subject: [PATCH] Fix broken SELF tests Signed-off-by: worksofliam --- src/views/jobManager/selfCodes/selfCodesTest.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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();