mirror of
https://github.com/denoland/deno.git
synced 2025-01-14 01:50:19 -05:00
re-enable follow symlinks walk test on Windows (#6626)
This commit is contained in:
parent
79400b8f7d
commit
e91594935a
1 changed files with 1 additions and 12 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue