diff options
author | jeanp413 <jeanp413@hotmail.com> | 2022-07-08 08:16:11 +0300 |
---|---|---|
committer | jeanp413 <jeanp413@hotmail.com> | 2022-07-08 08:16:11 +0300 |
commit | 318bdcc4ccd863bcb7bbb0053196c37101515564 (patch) | |
tree | a999dc5c8fad1e1b9d58209e3db624ff8f761e2a /extensions | |
parent | ac70882663dd94883d9b86579b408df02aa3af24 (diff) |
Fix tests
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/vscode-api-tests/src/singlefolder-tests/terminal.test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/vscode-api-tests/src/singlefolder-tests/terminal.test.ts b/extensions/vscode-api-tests/src/singlefolder-tests/terminal.test.ts index 3fa4ed05599..b76e348e02e 100644 --- a/extensions/vscode-api-tests/src/singlefolder-tests/terminal.test.ts +++ b/extensions/vscode-api-tests/src/singlefolder-tests/terminal.test.ts @@ -4,7 +4,7 @@ *--------------------------------------------------------------------------------------------*/ import { deepStrictEqual, doesNotThrow, equal, strictEqual, throws } from 'assert'; -import { ConfigurationTarget, Disposable, env, EnvironmentVariableMutator, EnvironmentVariableMutatorType, EventEmitter, ExtensionContext, extensions, ExtensionTerminalOptions, Pseudoterminal, Terminal, TerminalDimensions, TerminalOptions, TerminalState, UIKind, window, workspace } from 'vscode'; +import { ConfigurationTarget, Disposable, env, EnvironmentVariableMutator, EnvironmentVariableMutatorType, EventEmitter, ExtensionContext, extensions, ExtensionTerminalOptions, Pseudoterminal, Terminal, TerminalDimensions, TerminalExitReason, TerminalOptions, TerminalState, UIKind, window, workspace } from 'vscode'; import { assertNoRpc, poll } from '../utils'; // Disable terminal tests: @@ -223,7 +223,7 @@ import { assertNoRpc, poll } from '../utils'; await new Promise<void>(r => { disposables.push(window.onDidCloseTerminal(t => { if (t === terminal) { - deepStrictEqual(t.exitStatus, { code: undefined }); + deepStrictEqual(t.exitStatus, { code: undefined, reason: TerminalExitReason.Extension }); r(); } })); @@ -579,7 +579,7 @@ import { assertNoRpc, poll } from '../utils'; strictEqual(created.exitStatus, undefined); disposables.push(window.onDidCloseTerminal(t2 => { if (t2 === created) { - deepStrictEqual(created.exitStatus, { code: undefined }); + deepStrictEqual(created.exitStatus, { code: undefined, reason: TerminalExitReason.Process }); r(); } })); @@ -604,7 +604,7 @@ import { assertNoRpc, poll } from '../utils'; strictEqual(created.exitStatus, undefined); disposables.push(window.onDidCloseTerminal(t2 => { if (t2 === created) { - deepStrictEqual(created.exitStatus, { code: 0 }); + deepStrictEqual(created.exitStatus, { code: 0, reason: TerminalExitReason.Process }); r(); } })); @@ -634,7 +634,7 @@ import { assertNoRpc, poll } from '../utils'; strictEqual(created.exitStatus, undefined); disposables.push(window.onDidCloseTerminal(t2 => { if (t2 === created) { - deepStrictEqual(created.exitStatus, { code: 22 }); + deepStrictEqual(created.exitStatus, { code: 22, reason: TerminalExitReason.Process }); r(); } })); |