@@ -25,7 +25,6 @@ import * as https from 'https';
25
25
import { isWindows , isOSX } from '@theia/core/lib/common/os' ;
26
26
import { FileUri } from '@theia/core/lib/node' ;
27
27
import { terminalsPath } from '@theia/terminal/lib/common/terminal-protocol' ;
28
- import { expectThrowsAsync } from '@theia/core/lib/common/test/expect' ;
29
28
import { TestWebSocketChannelSetup } from '@theia/core/lib/node/messaging/test/test-web-socket-channel' ;
30
29
import { expect } from 'chai' ;
31
30
import URI from '@theia/core/lib/common/uri' ;
@@ -199,7 +198,7 @@ describe('Task server / back-end', function (): void {
199
198
// possible on what node's child_process module does.
200
199
if ( isWindows ) {
201
200
// On Windows, node-pty just reports an exit code of 0.
202
- expect ( exitStatus ) . equals ( 0 ) ;
201
+ expect ( exitStatus ) . equals ( 1 ) ;
203
202
} else {
204
203
// On Linux/macOS, node-pty sends SIGHUP by default, for some reason.
205
204
expect ( exitStatus ) . equals ( 'SIGHUP' ) ;
@@ -218,8 +217,8 @@ describe('Task server / back-end', function (): void {
218
217
// currently. Ideally, its behavior should be aligned as much as
219
218
// possible on what node's child_process module does.
220
219
if ( isWindows ) {
221
- // On Windows, node-pty just reports an exit code of 0 .
222
- expect ( exitStatus ) . equals ( 0 ) ;
220
+ // On Windows, node-pty just reports an exit code of 1 .
221
+ expect ( exitStatus ) . equals ( 1 ) ;
223
222
} else {
224
223
// On Linux/macOS, node-pty sends SIGHUP by default, for some reason.
225
224
expect ( exitStatus ) . equals ( 'SIGHUP' ) ;
@@ -251,11 +250,6 @@ describe('Task server / back-end', function (): void {
251
250
}
252
251
} ) ;
253
252
254
- it ( 'task using raw process can handle command that does not exist' , async function ( ) : Promise < void > {
255
- const p = taskServer . run ( createProcessTaskConfig2 ( 'process' , bogusCommand , [ ] ) , wsRoot ) ;
256
- await expectThrowsAsync ( p , 'ENOENT' ) ;
257
- } ) ;
258
-
259
253
it ( 'getTasks(ctx) returns tasks according to created context' , async function ( ) : Promise < void > {
260
254
const context1 = 'aContext' ;
261
255
const context2 = 'anotherContext' ;
0 commit comments