Skip to content

Commit

Permalink
test: skip flaky terminal integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 committed May 8, 2024
1 parent ceae19b commit c759471
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { assertNoRpc } from '../utils';

// Terminal integration tests are disabled on web https://github.com/microsoft/vscode/issues/92826
// Windows images will often not have functional shell integration
(env.uiKind === UIKind.Web || platform() === 'win32' ? suite.skip : suite)('vscode API - Terminal.shellIntegration', () => {
(env.uiKind === UIKind.Web || platform() !== 'darwin' ? suite.skip : suite)('vscode API - Terminal.shellIntegration', () => {
const disposables: Disposable[] = [];

suiteSetup(async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import { deepStrictEqual, doesNotThrow, equal, ok, strictEqual, throws } from 'assert';
import { commands, ConfigurationTarget, Disposable, env, EnvironmentVariableMutator, EnvironmentVariableMutatorOptions, EnvironmentVariableMutatorType, EventEmitter, ExtensionContext, extensions, ExtensionTerminalOptions, Pseudoterminal, Terminal, TerminalDimensions, TerminalExitReason, TerminalOptions, TerminalState, UIKind, Uri, window, workspace } from 'vscode';
import { assertNoRpc, poll } from '../utils';
import { platform } from 'os';

// Disable terminal tests:
// - Web https://github.com/microsoft/vscode/issues/92826
Expand Down Expand Up @@ -806,7 +807,7 @@ import { assertNoRpc, poll } from '../utils';
});
});

test('should respect clearing entries', async () => {
(platform() === 'linux' ? test.skip : test)('should respect clearing entries', async () => {
// Setup collection and create terminal
const collection = extensionContext.environmentVariableCollection;
disposables.push({ dispose: () => collection.clear() });
Expand Down Expand Up @@ -847,7 +848,7 @@ import { assertNoRpc, poll } from '../utils';
});
});

test('should respect deleting entries', async () => {
(platform() === 'linux' ? test.skip : test)('should respect deleting entries', async () => {
// Setup collection and create terminal
const collection = extensionContext.environmentVariableCollection;
disposables.push({ dispose: () => collection.clear() });
Expand Down

0 comments on commit c759471

Please sign in to comment.