Skip to content

Commit cb2ba4c

Browse files
committed
broken test
1 parent 8a9bfa8 commit cb2ba4c

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

src/vs/workbench/services/workingCopy/test/electron-sandbox/workingCopyBackupTracker.test.ts

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -423,47 +423,6 @@ suite('WorkingCopyBackupTracker (native)', function () {
423423
await cleanup();
424424
});
425425

426-
test('onWillShutdown - scratchpads - no veto for hot.exit off', async function () {
427-
const { accessor, cleanup } = await createTracker();
428-
429-
class TestBackupWorkingCopy extends TestWorkingCopy {
430-
431-
constructor(resource: URI) {
432-
super(resource);
433-
434-
accessor.workingCopyService.registerWorkingCopy(this);
435-
}
436-
437-
override capabilities = WorkingCopyCapabilities.Untitled | WorkingCopyCapabilities.Scratchpad;
438-
439-
override isDirty(): boolean {
440-
return false;
441-
}
442-
443-
override isModified(): boolean {
444-
return true;
445-
}
446-
}
447-
448-
const resource = toResource.call(this, '/path/custom.txt');
449-
new TestBackupWorkingCopy(resource);
450-
451-
//accessor.fileDialogService.setConfirmResult(ConfirmResult.CANCEL);
452-
accessor.filesConfigurationService.testOnFilesConfigurationChange({ files: { hotExit: 'off' } });
453-
454-
const event = new TestBeforeShutdownEvent();
455-
event.reason = ShutdownReason.QUIT;
456-
accessor.lifecycleService.fireBeforeShutdown(event);
457-
458-
const veto = await event.value;
459-
assert.ok(!veto);
460-
461-
const finalVeto = await event.finalValue?.();
462-
assert.ok(!finalVeto); // assert the tracker uses the internal finalVeto API
463-
464-
await cleanup();
465-
});
466-
467426
test('onWillShutdown - pending backup operations canceled and tracker suspended/resumsed', async function () {
468427
const { accessor, tracker, cleanup } = await createTracker();
469428

0 commit comments

Comments
 (0)