Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip-Carneiro-KX committed Apr 9, 2024
1 parent 54bc20d commit 28ea800
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions test/suite/commands.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import { ServerDetails, ServerType } from "../../src/models/server";
import { NewConnectionPannel } from "../../src/panels/newConnection";
import { MAX_STR_LEN } from "../../src/validators/kdbValidator";
import { LocalConnection } from "../../src/classes/localConnection";
import { ConnectionManagementService } from "../../src/services/connectionManagerService";

// eslint-disable-next-line @typescript-eslint/no-var-requires
const dsCmd = require("../../src/commands/dataSourceCommand");
Expand Down Expand Up @@ -1577,12 +1578,12 @@ describe("serverCommand", () => {
executeQueryStub,
writeResultsViewStub,
writeResultsConsoleStub: sinon.SinonStub;
const connMangService = new ConnectionManagementService();
beforeEach(() => {
ext.connection = new LocalConnection("localhost:5001", "server1");
ext.connection.connected = true;
ext.connectionNode = kdbNode;
isVisibleStub = sinon.stub(ext.resultsViewProvider, "isVisible");
executeQueryStub = sinon.stub(ext.connection, "executeQuery");
executeQueryStub = sinon.stub(connMangService, "executeQuery");
writeResultsViewStub = sinon.stub(
serverCommand,
"writeQueryResultsToView",
Expand Down
2 changes: 1 addition & 1 deletion test/suite/services.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ describe("kdbTreeProvider", () => {

assert.strictEqual(
kdbNode1.label,
"kdbnode1 [kdbserveralias] (connected)",
"kdbnode1 [kdbserveralias]",
"KdbNode node creation failed",
);
});
Expand Down

0 comments on commit 28ea800

Please sign in to comment.