Skip to content

Commit f15e211

Browse files
committed
Fix broken SELF tests
Signed-off-by: worksofliam <[email protected]>
1 parent fe11182 commit f15e211

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/views/jobManager/selfCodes/selfCodesTest.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { OldSQLJob } from "../../../connection/sqlJob";
22
import { TestCase } from "../../../testing";
33
import assert from "assert";
4-
import { SelfCodeNode, SelfValue } from "./nodes";
5-
import { QueryResult } from "../../../connection/types";
4+
import { SelfValue } from "./nodes";
65

76
export const selfCodeTests = [
87
{
@@ -30,9 +29,9 @@ export function testSelfCodes(): TestCase[] {
3029
await newJob.connect();
3130
await newJob.setSelfState(test.code as SelfValue);
3231
try {
33-
await newJob.query(test.sql).run();
32+
await newJob.query(test.sql).execute();
3433
} catch (e) {}
35-
let result = await newJob.query(content, {parameters: [newJob.id]}).run();
34+
let result = await newJob.query(content, {parameters: [newJob.id]}).execute();
3635
assert(result.data[0]['MATCHES'] >= 1);
3736

3837
newJob.close();

0 commit comments

Comments
 (0)