Skip to content

Commit b66599b

Browse files
author
Benjamin Pasero
committed
files - fix tests properly
1 parent 2d71ad3 commit b66599b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/vs/platform/files/test/node/diskFileService.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ suite('Disk File Service', function () {
134134
// we see random test failures when accessing the native file system. To
135135
// diagnose further, we retry node.js file access tests up to 3 times to
136136
// rule out any random disk issue.
137-
this.retries(3);
137+
// this.retries(3);
138138

139139
setup(async () => {
140140
const logService = new NullLogService();
@@ -1493,15 +1493,15 @@ suite('Disk File Service', function () {
14931493
}
14941494

14951495
test('createFile', async () => {
1496-
assertCreateFile(contents => VSBuffer.fromString(contents));
1496+
return assertCreateFile(contents => VSBuffer.fromString(contents));
14971497
});
14981498

14991499
test('createFile (readable)', async () => {
1500-
assertCreateFile(contents => bufferToReadable(VSBuffer.fromString(contents)));
1500+
return assertCreateFile(contents => bufferToReadable(VSBuffer.fromString(contents)));
15011501
});
15021502

15031503
test('createFile (stream)', async () => {
1504-
assertCreateFile(contents => bufferToStream(VSBuffer.fromString(contents)));
1504+
return assertCreateFile(contents => bufferToStream(VSBuffer.fromString(contents)));
15051505
});
15061506

15071507
async function assertCreateFile(converter: (content: string) => VSBuffer | VSBufferReadable | VSBufferReadableStream): Promise<void> {

0 commit comments

Comments
 (0)