1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-14 18:08:52 -05:00

re-enable follow symlinks walk test on Windows (#6626)

This commit is contained in:
Casper Beyer 2020-07-06 06:14:13 +08:00 committed by GitHub
parent 79400b8f7d
commit e91594935a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -239,7 +239,6 @@ testWalk(
} }
); );
// TODO(ry) Re-enable followSymlinks
testWalk( testWalk(
async (d: string): Promise<void> => { async (d: string): Promise<void> => {
await Deno.mkdir(d + "/a"); await Deno.mkdir(d + "/a");
@ -247,19 +246,9 @@ testWalk(
await touch(d + "/a/x"); await touch(d + "/a/x");
await touch(d + "/a/y"); await touch(d + "/a/y");
await touch(d + "/b/z"); await touch(d + "/b/z");
try {
await Deno.symlink(d + "/b", d + "/a/bb"); await Deno.symlink(d + "/b", d + "/a/bb");
} catch (err) {
assert(Deno.build.os == "windows");
assertEquals(err.message, "Not implemented");
}
}, },
async function symlink(): Promise<void> { async function symlink(): Promise<void> {
// symlink is not yet implemented on Windows.
if (Deno.build.os == "windows") {
return;
}
assertReady(6); assertReady(6);
const files = await walkArray("a"); const files = await walkArray("a");
assertEquals(files.length, 2); assertEquals(files.length, 2);