@@ -1059,7 +1059,7 @@ describe("connectionManagerService", () => {
10591059 ) ;
10601060 ext . serverProvider = new KdbTreeProvider ( servers , insights ) ;
10611061
1062- const localConn = new LocalConnection ( "127.0.0.1:5001" , "testLabel" ) ;
1062+ const localConn = new LocalConnection ( "127.0.0.1:5001" , "testLabel" , [ ] ) ;
10631063
10641064 const insightsConn = new InsightsConnection ( insightNode . label , insightNode ) ;
10651065 describe ( "retrieveConnection" , ( ) => {
@@ -1322,7 +1322,11 @@ describe("connectionManagerService", () => {
13221322 } ) ;
13231323
13241324 it ( "disconnectBehaviour" , ( ) => {
1325- const testConnection = new LocalConnection ( "localhost:5001" , "server1" ) ;
1325+ const testConnection = new LocalConnection (
1326+ "localhost:5001" ,
1327+ "server1" ,
1328+ [ ] ,
1329+ ) ;
13261330 ext . connectedConnectionList . push ( testConnection ) ;
13271331 ext . activeConnection = testConnection ;
13281332
@@ -2089,7 +2093,7 @@ describe("dataSourceEditorProvider", () => {
20892093 insightsNode . label ,
20902094 insightsNode ,
20912095 ) ;
2092- const localConn = new LocalConnection ( "127.0.0.1:5001" , "testLabel" ) ;
2096+ const localConn = new LocalConnection ( "127.0.0.1:5001" , "testLabel" , [ ] ) ;
20932097 const connMngService = new ConnectionManagementService ( ) ;
20942098 let isConnetedStub , retrieveConnectedConnectionStub : sinon . SinonStub ;
20952099 beforeEach ( ( ) => {
@@ -2530,15 +2534,15 @@ describe("kdbTreeService", () => {
25302534 } ) ;
25312535
25322536 it ( "Should return sorted views" , async ( ) => {
2533- ext . activeConnection = new LocalConnection ( "localhost:5001" , "server1" ) ;
2537+ ext . activeConnection = new LocalConnection ( "localhost:5001" , "server1" , [ ] ) ;
25342538 sinon . stub ( ext . activeConnection , "executeQuery" ) . resolves ( [ "vw1" , "vw2" ] ) ;
25352539 const result = await KdbTreeService . loadViews ( ) ;
25362540 assert . strictEqual ( result [ 0 ] , "vw1" , "Should return the first view" ) ;
25372541 sinon . restore ( ) ;
25382542 } ) ;
25392543
25402544 it ( "Should return sorted views (reverse order)" , async ( ) => {
2541- ext . activeConnection = new LocalConnection ( "localhost:5001" , "server1" ) ;
2545+ ext . activeConnection = new LocalConnection ( "localhost:5001" , "server1" , [ ] ) ;
25422546 sinon . stub ( ext . activeConnection , "executeQuery" ) . resolves ( [ "vw1" , "vw2" ] ) ;
25432547 const result = await KdbTreeService . loadViews ( ) ;
25442548 assert . strictEqual ( result [ 0 ] , "vw1" , "Should return the first view" ) ;
0 commit comments