Skip to content

Commit

Permalink
use more open modes for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaradzhov committed Jan 5, 2025
1 parent e0df11a commit f150fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit_node/_fs/_fs_handle_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ Deno.test(
Deno.test("[node/fs filehandle.chmod] Change the permissions of the file", async function () {
const fileHandle = await fs.open(testData);

const readOnly = 0o400;
const readOnly = 0o444;
await fileHandle.chmod(readOnly.toString(8));
assertEquals(Deno.statSync(testData).mode! & 0o777, readOnly);

const readWrite = 0o600;
const readWrite = 0o666;
await fileHandle.chmod(readWrite.toString(8));
assertEquals(Deno.statSync(testData).mode! & 0o777, readWrite);

Expand Down

0 comments on commit f150fe8

Please sign in to comment.