diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2023-10-04 11:37:39 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-04 11:37:39 +0900 |
commit | da0b945804f19903beac71b23ff1040ebdb9b554 (patch) | |
tree | 8ec0508fbc04839f113b2d58169090d14b474cdd /cli/tests/unit/test_util.ts | |
parent | 8c1677ecbcbb474fc6a5ac9b5f73b562677bb829 (diff) |
feat(unstable): add unix domain socket support to Deno.serve (#20759)
Diffstat (limited to 'cli/tests/unit/test_util.ts')
-rw-r--r-- | cli/tests/unit/test_util.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/tests/unit/test_util.ts b/cli/tests/unit/test_util.ts index 23713faf4..de1e8e8c5 100644 --- a/cli/tests/unit/test_util.ts +++ b/cli/tests/unit/test_util.ts @@ -2,7 +2,7 @@ import * as colors from "../../../test_util/std/fmt/colors.ts"; export { colors }; -import { resolve } from "../../../test_util/std/path/mod.ts"; +import { join, resolve } from "../../../test_util/std/path/mod.ts"; export { assert, assertEquals, @@ -81,3 +81,8 @@ export function execCode2(code: string) { }, }; } + +export function tmpUnixSocketPath(): string { + const folder = Deno.makeTempDirSync(); + return join(folder, "socket"); +} |