File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/test/testing/testController Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import * as assert from 'assert';
22import * as sinon from 'sinon' ;
33import * as fs from 'fs' ;
44import * as path from 'path' ;
5- import * as os from 'os' ;
65import { writeTestIdsFile } from '../../../client/testing/testController/common/utils' ;
76import { EXTENSION_ROOT_DIR } from '../../../client/constants' ;
87
@@ -21,11 +20,13 @@ suite('writeTestIdsFile tests', () => {
2120 const testIds = [ 'test1' , 'test2' , 'test3' ] ;
2221 const writeFileStub = sandbox . stub ( fs . promises , 'writeFile' ) . resolves ( ) ;
2322
24- const result = await writeTestIdsFile ( testIds ) ;
25-
26- const tmpDir = os . tmpdir ( ) ;
23+ // Set up XDG_RUNTIME_DIR
24+ process . env = {
25+ ...process . env ,
26+ XDG_RUNTIME_DIR : '/xdg/runtime/dir' ,
27+ } ;
2728
28- assert . ok ( result . startsWith ( tmpDir ) ) ;
29+ await writeTestIdsFile ( testIds ) ;
2930
3031 assert . ok ( writeFileStub . calledOnceWith ( sinon . match . string , testIds . join ( '\n' ) ) ) ;
3132 } ) ;
You can’t perform that action at this time.
0 commit comments