1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00

Remove flaky and useless tests (#5116)

This commit is contained in:
Ryan Dahl 2020-05-06 17:04:52 -04:00 committed by GitHub
parent 7e00b2471d
commit 846c049c9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 30 deletions

View file

@ -6,7 +6,6 @@ import {
assertEquals,
assertNotEquals,
assertThrows,
assertThrowsAsync,
} from "../../testing/asserts.ts";
import { writeFile } from "./_fs_writeFile.ts";
@ -161,20 +160,3 @@ test("Mode is not set when rid is passed", async function testCorrectFileModeRid
assert(fileInfo.mode);
assertNotEquals(fileInfo.mode & 0o777, 0o777);
});
test("Mode is not implemented on windows", function testModeNotImplementedWindows(): void {
if (Deno.build.os !== "windows") return;
assertThrowsAsync(
() => {
return new Promise((resolve, reject) => {
writeFile("fail.txt", "some data", { mode: 0o777 }, (err) => {
if (err) return reject(err);
resolve();
});
});
},
Error,
`Not implemented: "mode" on Windows`
);
});

View file

@ -105,15 +105,3 @@ test("Mode is not set when rid is passed", async function testCorrectFileModeRid
assert(fileInfo.mode);
assertNotEquals(fileInfo.mode & 0o777, 0o777);
});
test("Mode is not implemented on windows", function testModeNotImplementedWindows(): void {
if (Deno.build.os !== "windows") return;
assertThrowsAsync(
async () => {
await writeFile("fail.txt", "some data", { mode: 0o777 });
},
Error,
`Not implemented: "mode" on Windows`
);
});