Skip to content

Commit 78935a2

Browse files
rchiodokarthiknadig
authored andcommitted
Fix failing unit tests on windows (microsoft#11191)
1 parent 9e29be4 commit 78935a2

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

src/test/common/terminals/synchronousTerminalService.unit.test.ts

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,7 @@ suite('Terminal Service (synchronous)', () => {
107107
verify(
108108
terminalService.sendCommand(
109109
'python',
110-
deepEqual([
111-
isolated.fileToCommandArgument(),
112-
shellExecFile.fileToCommandArgument(),
113-
'cmd'.fileToCommandArgument(),
114-
'1',
115-
'2',
116-
tmpFile.filePath.fileToCommandArgument()
117-
])
110+
deepEqual([isolated, shellExecFile, 'cmd', '1', '2', tmpFile.filePath.fileToCommandArgument()])
118111
)
119112
).once();
120113
}).timeout(1_000);
@@ -150,14 +143,7 @@ suite('Terminal Service (synchronous)', () => {
150143
verify(
151144
terminalService.sendCommand(
152145
'python',
153-
deepEqual([
154-
isolated.fileToCommandArgument(),
155-
shellExecFile.fileToCommandArgument(),
156-
'cmd'.fileToCommandArgument(),
157-
'1',
158-
'2',
159-
tmpFile.filePath.fileToCommandArgument()
160-
])
146+
deepEqual([isolated, shellExecFile, 'cmd', '1', '2', tmpFile.filePath.fileToCommandArgument()])
161147
)
162148
).once();
163149
}).timeout(2_000);

src/test/interpreters/activation/terminalEnvironmentActivationService.unit.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,7 @@ suite('Interpreters Activation - Python Environment Variables (using terminals)'
104104
verify(
105105
terminal.sendCommand(
106106
cmd,
107-
deepEqual([
108-
isolated.fileToCommandArgument(),
109-
pyFile.fileToCommandArgument(),
110-
jsonFile.fileToCommandArgument()
111-
]),
107+
deepEqual([isolated, pyFile, jsonFile.fileToCommandArgument()]),
112108
anything(),
113109
false
114110
)

0 commit comments

Comments
 (0)