From 7601e72eb14d56e1b1abe48c6ae0893094191800 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Sat, 20 Mar 2021 10:22:25 +0000 Subject: [PATCH] Temporarily disable chdir tests --- cli/tests/unit/dir_test.ts | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/cli/tests/unit/dir_test.ts b/cli/tests/unit/dir_test.ts index b77c520e37a2e5..97bf2d619cf030 100644 --- a/cli/tests/unit/dir_test.ts +++ b/cli/tests/unit/dir_test.ts @@ -5,22 +5,27 @@ Deno.test("dirCwdNotNull", function (): void { assert(Deno.cwd() != null); }); -Deno.test("dirCwdChdirSuccess", function (): void { - const initialdir = Deno.cwd(); - const path = Deno.makeTempDirSync(); - Deno.chdir(path); - const current = Deno.cwd(); - if (Deno.build.os === "darwin") { - assertEquals(current, "/private" + path); - } else { - assertEquals(current, path); - } - Deno.chdir(initialdir); +Deno.test({ + name: "dirCwdChdirSuccess", + ignore: true, + fn(): void { + const initialdir = Deno.cwd(); + const path = Deno.makeTempDirSync(); + Deno.chdir(path); + const current = Deno.cwd(); + if (Deno.build.os === "darwin") { + assertEquals(current, "/private" + path); + } else { + assertEquals(current, path); + } + Deno.chdir(initialdir); + }, }); -Deno.test("dirCwdError", function (): void { - // excluding windows since it throws resource busy, while removeSync - if (["linux", "darwin"].includes(Deno.build.os)) { +Deno.test({ + name: "dirCwdError", + ignore: true, + fn(): void { const initialdir = Deno.cwd(); const path = Deno.makeTempDirSync(); Deno.chdir(path); @@ -32,7 +37,7 @@ Deno.test("dirCwdError", function (): void { } finally { Deno.chdir(initialdir); } - } + }, }); Deno.test("dirChdirError", function (): void {