Skip to content
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