diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/js_unit_tests.rs | 1 | ||||
-rw-r--r-- | tests/unit/sync_test.ts | 36 |
2 files changed, 0 insertions, 37 deletions
diff --git a/tests/integration/js_unit_tests.rs b/tests/integration/js_unit_tests.rs index 0246802b5..be2af84a8 100644 --- a/tests/integration/js_unit_tests.rs +++ b/tests/integration/js_unit_tests.rs @@ -84,7 +84,6 @@ util::unit_test_factory!( structured_clone_test, symbol_test, symlink_test, - sync_test, test_util, testing_test, text_encoding_test, diff --git a/tests/unit/sync_test.ts b/tests/unit/sync_test.ts deleted file mode 100644 index a683c7acb..000000000 --- a/tests/unit/sync_test.ts +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -import { assertEquals, DENO_FUTURE } from "./test_util.ts"; - -Deno.test( - { ignore: DENO_FUTURE, permissions: { read: true, write: true } }, - function fsyncSyncSuccess() { - const filename = Deno.makeTempDirSync() + "/test_fsyncSync.txt"; - using file = Deno.openSync(filename, { - read: true, - write: true, - create: true, - }); - const size = 64; - file.truncateSync(size); - Deno.fsyncSync(file.rid); - assertEquals(Deno.statSync(filename).size, size); - Deno.removeSync(filename); - }, -); - -Deno.test( - { ignore: DENO_FUTURE, permissions: { read: true, write: true } }, - async function fsyncSuccess() { - const filename = (await Deno.makeTempDir()) + "/test_fsync.txt"; - using file = await Deno.open(filename, { - read: true, - write: true, - create: true, - }); - const size = 64; - await file.truncate(size); - await Deno.fsync(file.rid); - assertEquals((await Deno.stat(filename)).size, size); - await Deno.remove(filename); - }, -); |