@@ -49,7 +49,7 @@ suite('Unit Tests - debugging', () => {
4949 initializeDI ( ) ;
5050 } ) ;
5151 teardown ( async ( ) => {
52- ioc . dispose ( ) ;
52+ await ioc . dispose ( ) ;
5353 await updateSetting ( 'unitTest.unittestArgs' , defaultUnitTestArgs , rootWorkspaceUri , configTarget ) ;
5454 await updateSetting ( 'unitTest.nosetestArgs' , [ ] , rootWorkspaceUri , configTarget ) ;
5555 await updateSetting ( 'unitTest.pyTestArgs' , [ ] , rootWorkspaceUri , configTarget ) ;
@@ -83,7 +83,7 @@ suite('Unit Tests - debugging', () => {
8383 }
8484
8585 async function testStartingDebugger ( testProvider : TestProvider ) {
86- const testManager = ioc . serviceContainer . get < ITestManagerFactory > ( ITestManagerFactory ) ( testProvider , rootWorkspaceUri , testFilesPath ) ;
86+ const testManager = ioc . serviceContainer . get < ITestManagerFactory > ( ITestManagerFactory ) ( testProvider , rootWorkspaceUri ! , testFilesPath ) ;
8787 const mockDebugLauncher = ioc . serviceContainer . get < MockDebugLauncher > ( ITestDebugLauncher ) ;
8888 const tests = await testManager . discoverTests ( CommandSource . commandPalette , true , true ) ;
8989 assert . equal ( tests . testFiles . length , 2 , 'Incorrect number of test files' ) ;
@@ -127,7 +127,7 @@ suite('Unit Tests - debugging', () => {
127127 } ) ;
128128
129129 async function testStoppingDebugger ( testProvider : TestProvider ) {
130- const testManager = ioc . serviceContainer . get < ITestManagerFactory > ( ITestManagerFactory ) ( testProvider , rootWorkspaceUri , testFilesPath ) ;
130+ const testManager = ioc . serviceContainer . get < ITestManagerFactory > ( ITestManagerFactory ) ( testProvider , rootWorkspaceUri ! , testFilesPath ) ;
131131 const mockDebugLauncher = ioc . serviceContainer . get < MockDebugLauncher > ( ITestDebugLauncher ) ;
132132 const tests = await testManager . discoverTests ( CommandSource . commandPalette , true , true ) ;
133133 assert . equal ( tests . testFiles . length , 2 , 'Incorrect number of test files' ) ;
@@ -141,7 +141,7 @@ suite('Unit Tests - debugging', () => {
141141
142142 const discoveryPromise = testManager . discoverTests ( CommandSource . commandPalette , true , true , true ) ;
143143 await expect ( runningPromise ) . to . be . rejectedWith ( CANCELLATION_REASON , 'Incorrect reason for ending the debugger' ) ;
144- ioc . dispose ( ) ; // will cancel test discovery
144+ await ioc . dispose ( ) ; // will cancel test discovery
145145 await expect ( discoveryPromise ) . to . be . rejectedWith ( CANCELLATION_REASON , 'Incorrect reason for ending the debugger' ) ;
146146 }
147147
@@ -161,7 +161,7 @@ suite('Unit Tests - debugging', () => {
161161 } ) ;
162162
163163 async function testDebuggerWhenRediscoveringTests ( testProvider : TestProvider ) {
164- const testManager = ioc . serviceContainer . get < ITestManagerFactory > ( ITestManagerFactory ) ( testProvider , rootWorkspaceUri , testFilesPath ) ;
164+ const testManager = ioc . serviceContainer . get < ITestManagerFactory > ( ITestManagerFactory ) ( testProvider , rootWorkspaceUri ! , testFilesPath ) ;
165165 const mockDebugLauncher = ioc . serviceContainer . get < MockDebugLauncher > ( ITestDebugLauncher ) ;
166166 const tests = await testManager . discoverTests ( CommandSource . commandPalette , true , true ) ;
167167 assert . equal ( tests . testFiles . length , 2 , 'Incorrect number of test files' ) ;
0 commit comments