@@ -4,26 +4,26 @@ import * as sinon from 'sinon';
44import { expect } from 'chai' ;
55
66import { CancellationToken , ExtensionContext , Uri , window , workspace } from 'vscode' ;
7- import { QueryHistoryConfig } from '../../config' ;
8- import { DatabaseManager } from '../../databases' ;
9- import { tmpDir } from '../../helpers' ;
10- import { QueryHistoryManager } from '../../query-history' ;
11- import { QueryServerClient } from '../../queryserver-client' ;
12- import { Credentials } from '../../authentication' ;
13- import { AnalysesResultsManager } from '../../remote-queries/analyses-results-manager' ;
14- import { RemoteQueryResult } from '../../remote-queries/shared/remote-query-result' ;
15- import { DisposableBucket } from '../disposable-bucket' ;
16- import { testDisposeHandler } from '../test-dispose-handler' ;
17- import { walkDirectory } from '../../helpers' ;
18- import { getErrorMessage } from '../../pure/helpers-pure' ;
7+ import { QueryHistoryConfig } from '../../../ config' ;
8+ import { DatabaseManager } from '../../../ databases' ;
9+ import { tmpDir } from '../../../ helpers' ;
10+ import { QueryHistoryManager } from '../../../ query-history' ;
11+ import { QueryServerClient } from '../../../ queryserver-client' ;
12+ import { Credentials } from '../../../ authentication' ;
13+ import { AnalysesResultsManager } from '../../../ remote-queries/analyses-results-manager' ;
14+ import { RemoteQueryResult } from '../../../ remote-queries/shared/remote-query-result' ;
15+ import { DisposableBucket } from '../../ disposable-bucket' ;
16+ import { testDisposeHandler } from '../../ test-dispose-handler' ;
17+ import { walkDirectory } from '../../../ helpers' ;
18+ import { getErrorMessage } from '../../../ pure/helpers-pure' ;
1919
2020/**
2121 * Tests for remote queries and how they interact with the query history manager.
2222 */
2323
2424describe ( 'Remote queries and query history manager' , function ( ) {
2525
26- const EXTENSION_PATH = path . join ( __dirname , '../../../' ) ;
26+ const EXTENSION_PATH = path . join ( __dirname , '../../../../ ' ) ;
2727 const STORAGE_DIR = Uri . file ( path . join ( tmpDir . name , 'remote-queries' ) ) . fsPath ;
2828 const asyncNoop = async ( ) => { /** noop */ } ;
2929
@@ -353,7 +353,7 @@ describe('Remote queries and query history manager', function() {
353353
354354 async function copyHistoryState ( ) {
355355 fs . ensureDirSync ( STORAGE_DIR ) ;
356- fs . copySync ( path . join ( __dirname , 'data/remote-queries/' ) , path . join ( tmpDir . name , 'remote-queries' ) ) ;
356+ fs . copySync ( path . join ( __dirname , '../ data/remote-queries/' ) , path . join ( tmpDir . name , 'remote-queries' ) ) ;
357357
358358 // also, replace the files with "PLACEHOLDER" so that they have the correct directory
359359 for await ( const p of walkDirectory ( STORAGE_DIR ) ) {
0 commit comments