@@ -106,7 +106,7 @@ suite('Debugging - Adapter Factory', () => {
106106
107107 const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
108108
109- assert . deepEqual ( descriptor , debugExecutable ) ;
109+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
110110 } ) ;
111111
112112 test ( 'Return the path of the active interpreter as the current python path, it exists and configuration.pythonPath is not defined' , async ( ) => {
@@ -117,7 +117,7 @@ suite('Debugging - Adapter Factory', () => {
117117
118118 const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
119119
120- assert . deepEqual ( descriptor , debugExecutable ) ;
120+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
121121 } ) ;
122122
123123 test ( 'Return the path of the first available interpreter as the current python path, configuration.pythonPath is not defined and there is no active interpreter' , async ( ) => {
@@ -126,7 +126,7 @@ suite('Debugging - Adapter Factory', () => {
126126
127127 const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
128128
129- assert . deepEqual ( descriptor , debugExecutable ) ;
129+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
130130 } ) ;
131131
132132 test ( 'Display a message if no python interpreter is set' , async ( ) => {
@@ -147,7 +147,7 @@ suite('Debugging - Adapter Factory', () => {
147147
148148 // Interpreter not needed for host/port
149149 verify ( interpreterService . getInterpreters ( anything ( ) ) ) . never ( ) ;
150- assert . deepEqual ( descriptor , debugServer ) ;
150+ assert . deepStrictEqual ( descriptor , debugServer ) ;
151151 } ) ;
152152
153153 test ( 'Return Debug Adapter server if request is "attach", and connect is specified' , async ( ) => {
@@ -161,7 +161,7 @@ suite('Debugging - Adapter Factory', () => {
161161
162162 // Interpreter not needed for connect
163163 verify ( interpreterService . getInterpreters ( anything ( ) ) ) . never ( ) ;
164- assert . deepEqual ( descriptor , debugServer ) ;
164+ assert . deepStrictEqual ( descriptor , debugServer ) ;
165165 } ) ;
166166
167167 test ( 'Return Debug Adapter executable if request is "attach", and listen is specified' , async ( ) => {
@@ -171,7 +171,7 @@ suite('Debugging - Adapter Factory', () => {
171171 when ( interpreterService . getActiveInterpreter ( anything ( ) ) ) . thenResolve ( interpreter ) ;
172172
173173 const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
174- assert . deepEqual ( descriptor , debugExecutable ) ;
174+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
175175 } ) ;
176176
177177 test ( 'Throw error if request is "attach", and neither port, processId, listen, nor connect is specified' , async ( ) => {
@@ -200,7 +200,7 @@ suite('Debugging - Adapter Factory', () => {
200200
201201 const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
202202
203- assert . deepEqual ( descriptor , debugExecutable ) ;
203+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
204204 } ) ;
205205
206206 test ( "Don't pass the --log-dir argument to debug adapter if configuration.logToFile is not set" , async ( ) => {
@@ -209,7 +209,7 @@ suite('Debugging - Adapter Factory', () => {
209209
210210 const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
211211
212- assert . deepEqual ( descriptor , debugExecutable ) ;
212+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
213213 } ) ;
214214
215215 test ( "Don't pass the --log-dir argument to debugger if configuration.logToFile is set to false" , async ( ) => {
@@ -218,7 +218,7 @@ suite('Debugging - Adapter Factory', () => {
218218
219219 const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
220220
221- assert . deepEqual ( descriptor , debugExecutable ) ;
221+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
222222 } ) ;
223223
224224 test ( 'Send attach to local process telemetry if attaching to a local process' , async ( ) => {
@@ -243,16 +243,25 @@ suite('Debugging - Adapter Factory', () => {
243243
244244 const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
245245
246- assert . deepEqual ( descriptor , debugExecutable ) ;
246+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
247247 } ) ;
248248
249249 test ( 'Use "debugAdapterPython" when specified' , async ( ) => {
250250 const session = createSession ( { debugAdapterPython : '/bin/custompy' } ) ;
251251 const debugExecutable = new DebugAdapterExecutable ( '/bin/custompy' , [ debugAdapterPath ] ) ;
252+ const customInterpreter = {
253+ architecture : Architecture . Unknown ,
254+ path : '/bin/custompy' ,
255+ sysPrefix : '' ,
256+ sysVersion : '' ,
257+ envType : EnvironmentType . Unknown ,
258+ version : new SemVer ( '3.7.4-test' ) ,
259+ } ;
260+ when ( interpreterService . getInterpreterDetails ( '/bin/custompy' ) ) . thenResolve ( customInterpreter ) ;
252261
253262 const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
254263
255- assert . deepEqual ( descriptor , debugExecutable ) ;
264+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
256265 } ) ;
257266
258267 test ( 'Do not use "python" to spawn the debug adapter' , async ( ) => {
@@ -261,6 +270,6 @@ suite('Debugging - Adapter Factory', () => {
261270
262271 const descriptor = await factory . createDebugAdapterDescriptor ( session , nodeExecutable ) ;
263272
264- assert . deepEqual ( descriptor , debugExecutable ) ;
273+ assert . deepStrictEqual ( descriptor , debugExecutable ) ;
265274 } ) ;
266275} ) ;
0 commit comments