diff options
Diffstat (limited to 'src/vs/platform/files/test/node/diskFileService.test.ts')
-rw-r--r-- | src/vs/platform/files/test/node/diskFileService.test.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vs/platform/files/test/node/diskFileService.test.ts b/src/vs/platform/files/test/node/diskFileService.test.ts index de1f4521122..d6cf5c76fa0 100644 --- a/src/vs/platform/files/test/node/diskFileService.test.ts +++ b/src/vs/platform/files/test/node/diskFileService.test.ts @@ -127,6 +127,8 @@ export class TestDiskFileSystemProvider extends DiskFileSystemProvider { } } +DiskFileSystemProvider.configureFlushOnWrite(false); // speed up all unit tests by disabling flush on write + flakySuite('Disk File Service', function () { const testSchema = 'test'; @@ -1794,6 +1796,15 @@ flakySuite('Disk File Service', function () { return testWriteFile(); }); + test('writeFile - flush on write', async () => { + DiskFileSystemProvider.configureFlushOnWrite(true); + try { + return await testWriteFile(); + } finally { + DiskFileSystemProvider.configureFlushOnWrite(false); + } + }); + test('writeFile - buffered', async () => { setCapabilities(fileProvider, FileSystemProviderCapabilities.FileOpenReadWriteClose); |