summaryrefslogtreecommitdiff
path: root/cli/tests/workers/parent_read_check_granular_worker.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/workers/parent_read_check_granular_worker.js')
-rw-r--r--cli/tests/workers/parent_read_check_granular_worker.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/cli/tests/workers/parent_read_check_granular_worker.js b/cli/tests/workers/parent_read_check_granular_worker.js
index 474b8a61b..1391190cd 100644
--- a/cli/tests/workers/parent_read_check_granular_worker.js
+++ b/cli/tests/workers/parent_read_check_granular_worker.js
@@ -1,5 +1,3 @@
-import { fromFileUrl } from "../../../test_util/std/path/mod.ts";
-
const worker = new Worker(
new URL("./read_check_granular_worker.js", import.meta.url).href,
{
@@ -31,7 +29,7 @@ worker.onmessage = ({ data: childResponse }) => {
onmessage = async ({ data }) => {
const { state } = await Deno.permissions.query({
name: "read",
- path: fromFileUrl(new URL(data.route, import.meta.url)),
+ path: data.path,
});
messages[data.index] = state === "granted";