@@ -10,7 +10,6 @@ import { QlPack, runRemoteQuery } from '../../../remote-queries/run-remote-query
1010import { Credentials } from '../../../authentication' ;
1111import { CliVersionConstraint , CodeQLCliServer } from '../../../cli' ;
1212import { CodeQLExtensionInterface } from '../../../extension' ;
13- import { setRemoteControllerRepo , setRemoteRepositoryLists } from '../../../config' ;
1413import * as config from '../../../config' ;
1514import { UserCancellationException } from '../../../commandRunner' ;
1615import * as ghApiClient from '../../../remote-queries/gh-api/gh-api-client' ;
@@ -24,6 +23,7 @@ import { createMockApiResponse } from '../../factories/remote-queries/gh-api/var
2423import { createMockExtensionContext } from '../../no-workspace' ;
2524import { VariantAnalysisManager } from '../../../remote-queries/variant-analysis-manager' ;
2625import { OutputChannelLogger } from '../../../logging' ;
26+ import { testConfig } from '../../test-config' ;
2727
2828describe ( 'Remote queries' , function ( ) {
2929 const baseDir = path . join ( __dirname , '../../../../src/vscode-tests/cli-integration' ) ;
@@ -83,8 +83,8 @@ describe('Remote queries', function() {
8383 getRepositoryFromNwoStub = sandbox . stub ( ghApiClient , 'getRepositoryFromNwo' ) . resolves ( dummyRepository ) ;
8484
8585 // always run in the vscode-codeql repo
86- await setRemoteControllerRepo ( 'github/vscode-codeql' ) ;
87- await setRemoteRepositoryLists ( { 'vscode-codeql' : [ 'github/vscode-codeql' ] } ) ;
86+ await testConfig . remoteControllerRepo . set ( 'github/vscode-codeql' ) ;
87+ await testConfig . remoteRepoLists . set ( { 'vscode-codeql' : [ 'github/vscode-codeql' ] } ) ;
8888
8989 liveResultsStub = sandbox . stub ( config , 'isVariantAnalysisLiveResultsEnabled' ) . returns ( false ) ;
9090 } ) ;
0 commit comments