transient workspaces - add tests (#119695)

This commit is contained in:
Benjamin Pasero 2021-06-25 08:52:21 +02:00
parent 49e1f99198
commit 482da3fb80
No known key found for this signature in database
GPG key ID: E6380CC4C8219E65

View file

@ -242,6 +242,10 @@ flakySuite('WorkspacesManagementMainService', () => {
const resolvedInvalid = await service.resolveLocalWorkspace(workspace.configPath);
assert.ok(!resolvedInvalid);
fs.writeFileSync(workspace.configPath.fsPath, JSON.stringify({ transient: true, folders: [] })); // transient worksapce
const resolvedTransient = await service.resolveLocalWorkspace(workspace.configPath);
assert.ok(resolvedTransient?.transient);
});
test('resolveWorkspaceSync', async () => {
@ -261,6 +265,10 @@ flakySuite('WorkspacesManagementMainService', () => {
const resolvedInvalid = service.resolveLocalWorkspaceSync(workspace.configPath);
assert.ok(!resolvedInvalid);
fs.writeFileSync(workspace.configPath.fsPath, JSON.stringify({ transient: true, folders: [] })); // transient worksapce
const resolvedTransient = service.resolveLocalWorkspaceSync(workspace.configPath);
assert.ok(resolvedTransient?.transient);
});
test('resolveWorkspaceSync (support relative paths)', async () => {