summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/unit/net_test.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/cli/tests/unit/net_test.ts b/cli/tests/unit/net_test.ts
index 180f8d88e..a1585ce6b 100644
--- a/cli/tests/unit/net_test.ts
+++ b/cli/tests/unit/net_test.ts
@@ -625,3 +625,18 @@ unitTest(
listener.close();
},
);
+
+unitTest(
+ {
+ ignore: Deno.build.os !== "linux",
+ permissions: { read: true, write: true },
+ },
+ function netUnixAbstractPathShouldNotPanic() {
+ const listener = Deno.listen({
+ path: "\0aaa",
+ transport: "unix",
+ });
+ assert("not panic");
+ listener.close();
+ },
+);