提交 b0e96922 编写于 作者: B Benjamin Pasero

tests - selectively enable some previously skipped tests

上级 ea1b3f27
......@@ -260,7 +260,7 @@ flakySuite('BackupMainService', () => {
assert.equal(1, fs.readdirSync(path.join(backupHome, emptyBackups[0].backupFolder!)).length);
});
flakySuite('loadSync', () => {
suite('loadSync', () => {
test('getFolderBackupPaths() should return [] when workspaces.json doesn\'t exist', () => {
assertEqualUris(service.getFolderBackupPaths(), []);
});
......@@ -430,7 +430,7 @@ flakySuite('BackupMainService', () => {
});
});
flakySuite('dedupeFolderWorkspaces', () => {
suite('dedupeFolderWorkspaces', () => {
test('should ignore duplicates (folder workspace)', async () => {
await ensureFolderExists(existingTestFolder1);
......@@ -493,7 +493,7 @@ flakySuite('BackupMainService', () => {
});
});
flakySuite('registerWindowForBackups', () => {
suite('registerWindowForBackups', () => {
test('should persist paths to workspaces.json (folder workspace)', async () => {
service.registerFolderBackupSync(fooFile);
service.registerFolderBackupSync(barFile);
......@@ -541,7 +541,7 @@ flakySuite('BackupMainService', () => {
assert.deepEqual(json.rootURIWorkspaces.map(b => b.configURIPath), [URI.file(upperFooPath).toString()]);
});
flakySuite('removeBackupPathSync', () => {
suite('removeBackupPathSync', () => {
test('should remove folder workspaces from workspaces.json (folder workspace)', async () => {
service.registerFolderBackupSync(fooFile);
service.registerFolderBackupSync(barFile);
......@@ -604,8 +604,7 @@ flakySuite('BackupMainService', () => {
});
});
flakySuite('getWorkspaceHash', () => {
suite('getWorkspaceHash', () => {
(platform.isLinux ? test.skip : test)('should ignore case on Windows and Mac', () => {
if (platform.isMacintosh) {
assert.equal(service.getFolderHash(URI.file('/foo')), service.getFolderHash(URI.file('/FOO')));
......@@ -617,7 +616,7 @@ flakySuite('BackupMainService', () => {
});
});
flakySuite('mixed path casing', () => {
suite('mixed path casing', () => {
test('should handle case insensitive paths properly (registerWindowForBackupsSync) (folder workspace)', () => {
service.registerFolderBackupSync(fooFile);
service.registerFolderBackupSync(URI.file(fooFile.fsPath.toUpperCase()));
......@@ -659,7 +658,7 @@ flakySuite('BackupMainService', () => {
});
});
flakySuite('getDirtyWorkspaces', () => {
suite('getDirtyWorkspaces', () => {
test('should report if a workspace or folder has backups', async () => {
const folderBackupPath = service.registerFolderBackupSync(fooFile);
......
......@@ -407,7 +407,7 @@ flakySuite('Disk File Service', function () {
assert.equal(r2.name, 'deep');
});
(isWindows /* not reliable on windows */ ? test.skip : test)('resolve - folder symbolic link', async () => {
(isWindows /* symlinks are not reliable on windows */ ? test.skip : test)('resolve - folder symbolic link', async () => {
const link = URI.file(join(testDir, 'deep-link'));
await symlink(join(testDir, 'deep'), link.fsPath);
......@@ -417,7 +417,7 @@ flakySuite('Disk File Service', function () {
assert.equal(resolved.isSymbolicLink, true);
});
(isWindows /* not reliable on windows */ ? test.skip : test)('resolve - file symbolic link', async () => {
(isWindows /* symlinks are not reliable on windows */ ? test.skip : test)('resolve - file symbolic link', async () => {
const link = URI.file(join(testDir, 'lorem.txt-linked'));
await symlink(join(testDir, 'lorem.txt'), link.fsPath);
......@@ -426,7 +426,7 @@ flakySuite('Disk File Service', function () {
assert.equal(resolved.isSymbolicLink, true);
});
(isWindows /* not reliable on windows */ ? test.skip : test)('resolve - symbolic link pointing to non-existing file does not break', async () => {
(isWindows /* symlinks are not reliable on windows */ ? test.skip : test)('resolve - symbolic link pointing to non-existing file does not break', async () => {
await symlink(join(testDir, 'foo'), join(testDir, 'bar'));
const resolved = await service.resolve(URI.file(testDir));
......@@ -475,7 +475,7 @@ flakySuite('Disk File Service', function () {
assert.equal((<FileOperationError>error).fileOperationResult, FileOperationResult.FILE_NOT_FOUND);
}
(isWindows /* not reliable on windows */ ? test.skip : test)('deleteFile - symbolic link (exists)', async () => {
(isWindows /* symlinks are not reliable on windows */ ? test.skip : test)('deleteFile - symbolic link (exists)', async () => {
const target = URI.file(join(testDir, 'lorem.txt'));
const link = URI.file(join(testDir, 'lorem.txt-linked'));
await symlink(target.fsPath, link.fsPath);
......@@ -497,7 +497,7 @@ flakySuite('Disk File Service', function () {
assert.equal(existsSync(target.fsPath), true); // target the link pointed to is never deleted
});
(isWindows /* not reliable on windows */ ? test.skip : test)('deleteFile - symbolic link (pointing to non-existing file)', async () => {
(isWindows /* symlinks are not reliable on windows */ ? test.skip : test)('deleteFile - symbolic link (pointing to non-existing file)', async () => {
const target = URI.file(join(testDir, 'foo'));
const link = URI.file(join(testDir, 'bar'));
await symlink(target.fsPath, link.fsPath);
......@@ -1541,23 +1541,23 @@ flakySuite('Disk File Service', function () {
assert.equal(error!.fileOperationResult, FileOperationResult.FILE_EXCEEDS_MEMORY_LIMIT);
}
(isWindows ? test.skip /* flaky test */ : test)('readFile - FILE_TOO_LARGE - default', async () => {
test('readFile - FILE_TOO_LARGE - default', async () => {
return testFileTooLarge();
});
(isWindows ? test.skip /* flaky test */ : test)('readFile - FILE_TOO_LARGE - buffered', async () => {
test('readFile - FILE_TOO_LARGE - buffered', async () => {
setCapabilities(fileProvider, FileSystemProviderCapabilities.FileOpenReadWriteClose);
return testFileTooLarge();
});
(isWindows ? test.skip /* flaky test */ : test)('readFile - FILE_TOO_LARGE - unbuffered', async () => {
test('readFile - FILE_TOO_LARGE - unbuffered', async () => {
setCapabilities(fileProvider, FileSystemProviderCapabilities.FileReadWrite);
return testFileTooLarge();
});
(isWindows ? test.skip /* flaky test */ : test)('readFile - FILE_TOO_LARGE - streamed', async () => {
test('readFile - FILE_TOO_LARGE - streamed', async () => {
setCapabilities(fileProvider, FileSystemProviderCapabilities.FileReadStream);
return testFileTooLarge();
......
......@@ -351,7 +351,7 @@ suite('Encoding', () => {
assert.equal(content.length, 65537);
});
(isWindows /* unsupported OS */ ? test.skip : test)('toDecodeStream - some stream (UTF-8 issue #102202)', async function () {
(isWindows /* TODO@bpasero why does this fail on windows */ ? test.skip : test)('toDecodeStream - some stream (UTF-8 issue #102202)', async function () {
const path = getPathFromAmdModule(require, './fixtures/issue_102202.txt');
const source = streamToBufferReadableStream(fs.createReadStream(path));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册