Skip to content

Skip a few more tests. #8830

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion src/test/common/platform/filesystem.functional.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@ export class FSFixture {
if (this.tempDir) {
const tempDir = this.tempDir;
this.tempDir = undefined;
tempDir.removeCallback();
try {
tempDir.removeCallback();
} catch {
// The "unsafeCleanup: true" option is supposed
// to support a non-empty directory, but apparently
// that isn't always the case. (see #8804)
await fsextra.remove(tempDir.name);
}
}
if (this.sockServer) {
const srv = this.sockServer;
Expand Down Expand Up @@ -375,6 +382,12 @@ suite('Raw FileSystem', () => {
});

suite('createWriteStream', () => {
setup(function() {
// Tests disabled due to CI failures: https://github.com/microsoft/vscode-python/issues/8804
// tslint:disable-next-line:no-invalid-this
return this.skip();
});

test('returns the correct WriteStream', async () => {
const filename = await fix.resolve('x/y/z/spam.py');
const expected = fsextra.createWriteStream(filename);
Expand Down Expand Up @@ -538,6 +551,12 @@ suite('FileSystem Utils', () => {
});

suite('search', () => {
setup(function() {
// Tests disabled due to CI failures: https://github.com/microsoft/vscode-python/issues/8804
// tslint:disable-next-line:no-invalid-this
return this.skip();
});

test('found matches', async () => {
const pattern = await fix.resolve(`x/y/z/spam.*`);
const expected: string[] = [
Expand Down