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: 12 additions & 9 deletions src/test/common/platform/filesystem.functional.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,17 @@ suite('FileSystem - raw', () => {
});

suite('createWriteStream', () => {
setup(function() {
if (OSX) {
// tslint:disable-next-line:no-suspicious-comment
// TODO(GH-10031) This appears to be producing
// false negative test results, so we're skipping
// it for now.
// tslint:disable-next-line:no-invalid-this
this.skip();
}
});

test('returns the correct WriteStream', async () => {
const filename = await fix.resolve('x/y/z/spam.py');
const expected = fs.createWriteStream(filename);
Expand Down Expand Up @@ -290,15 +301,7 @@ suite('FileSystem - raw', () => {
await assertFileText(filename, data);
});

test('overwrites existing file', async function() {
if (OSX) {
// tslint:disable-next-line:no-suspicious-comment
// TODO(GH-10031) This appears to be producing
// false negative test results, so we're skipping
// it for now.
// tslint:disable-next-line:no-invalid-this
this.skip();
}
test('overwrites existing file', async () => {
const filename = await fix.createFile('x/y/z/spam.py', '...');
const data = 'line1\nline2\n';

Expand Down