summaryrefslogtreecommitdiff
path: root/js/chmod_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-27 10:33:01 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-10-27 08:08:51 -0700
commit50d6593f6a8381788b644f6d61d837b23a3e1832 (patch)
tree36a9aecf6b68a1b7dd741e3c5ea2f6ff9e0a3342 /js/chmod_test.ts
parent6adc87e3eb6193fd739b28931c19cf850c9b3276 (diff)
Fix race condition in chmod test
Diffstat (limited to 'js/chmod_test.ts')
-rw-r--r--js/chmod_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/chmod_test.ts b/js/chmod_test.ts
index e2e117d74..f731a026e 100644
--- a/js/chmod_test.ts
+++ b/js/chmod_test.ts
@@ -31,10 +31,10 @@ if (isNotWindows) {
const filename = tempDir + "/test.txt";
deno.writeFileSync(filename, data, 0o666);
const symlinkName = tempDir + "/test_symlink.txt";
- deno.symlink(filename, symlinkName);
+ deno.symlinkSync(filename, symlinkName);
let symlinkInfo = deno.lstatSync(symlinkName);
- const symlinkMode = symlinkInfo.mode & 0o777; // plaform dependent
+ const symlinkMode = symlinkInfo.mode & 0o777; // platform dependent
deno.chmodSync(symlinkName, 0o777);
@@ -96,10 +96,10 @@ if (isNotWindows) {
const filename = tempDir + "/test.txt";
deno.writeFileSync(filename, data, 0o666);
const symlinkName = tempDir + "/test_symlink.txt";
- deno.symlink(filename, symlinkName);
+ deno.symlinkSync(filename, symlinkName);
let symlinkInfo = deno.lstatSync(symlinkName);
- const symlinkMode = symlinkInfo.mode & 0o777; // plaform dependent
+ const symlinkMode = symlinkInfo.mode & 0o777; // platform dependent
await deno.chmod(symlinkName, 0o777);