0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-25 06:32:41 -05:00

Remove ctime from fstat test

This commit is contained in:
Lukasz Czerniawski 2024-08-02 22:26:20 +02:00
parent 6ee7cf46f4
commit a734201808

View file

@ -21,7 +21,6 @@ Deno.test({ permissions: { read: true } }, function fstatSyncSuccess() {
assert(fileInfo.mtime); assert(fileInfo.mtime);
// The `birthtime` field is not available on Linux before kernel version 4.11. // The `birthtime` field is not available on Linux before kernel version 4.11.
assert(fileInfo.birthtime || Deno.build.os === "linux"); assert(fileInfo.birthtime || Deno.build.os === "linux");
assert(fileInfo.ctime);
}); });
Deno.test({ permissions: { read: true } }, async function fstatSuccess() { Deno.test({ permissions: { read: true } }, async function fstatSuccess() {
@ -35,7 +34,6 @@ Deno.test({ permissions: { read: true } }, async function fstatSuccess() {
assert(fileInfo.mtime); assert(fileInfo.mtime);
// The `birthtime` field is not available on Linux before kernel version 4.11. // The `birthtime` field is not available on Linux before kernel version 4.11.
assert(fileInfo.birthtime || Deno.build.os === "linux"); assert(fileInfo.birthtime || Deno.build.os === "linux");
assert(fileInfo.ctime);
}); });
Deno.test( Deno.test(