summaryrefslogtreecommitdiff
path: root/cli/js/tests/net_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-04-28 12:35:23 -0400
committerGitHub <noreply@github.com>2020-04-28 12:35:23 -0400
commite0ca60e7707b5896ce67301aefd1de4a76e3cf75 (patch)
tree4c5357a3d3482b14cbc3773374aa885e1e29e90c /cli/js/tests/net_test.ts
parentf7ab19b1b7ba929f7fd1550e2e4ecebe91cd9ea3 (diff)
BREAKING: Use LLVM target triple for Deno.build (#4948)
Deno.build.os values have changed to correspond to standard LLVM target triples "win" -> "windows" "mac" -> "darwin"
Diffstat (limited to 'cli/js/tests/net_test.ts')
-rw-r--r--cli/js/tests/net_test.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/cli/js/tests/net_test.ts b/cli/js/tests/net_test.ts
index 6eb0f0dc6..c8c9a893a 100644
--- a/cli/js/tests/net_test.ts
+++ b/cli/js/tests/net_test.ts
@@ -18,7 +18,7 @@ unitTest(
{
perms: { net: true },
// TODO:
- ignore: Deno.build.os === "win",
+ ignore: Deno.build.os === "windows",
},
function netUdpListenClose(): void {
const socket = Deno.listen({
@@ -34,7 +34,7 @@ unitTest(
);
unitTest(
- { ignore: Deno.build.os === "win", perms: { read: true, write: true } },
+ { ignore: Deno.build.os === "windows", perms: { read: true, write: true } },
function netUnixListenClose(): void {
const filePath = Deno.makeTempFileSync();
const socket = Deno.listen({
@@ -48,7 +48,7 @@ unitTest(
);
unitTest(
- { ignore: Deno.build.os === "win", perms: { read: true, write: true } },
+ { ignore: Deno.build.os === "windows", perms: { read: true, write: true } },
function netUnixPacketListenClose(): void {
const filePath = Deno.makeTempFileSync();
const socket = Deno.listen({
@@ -82,7 +82,7 @@ unitTest(
);
unitTest(
- { ignore: Deno.build.os === "win", perms: { read: true, write: true } },
+ { ignore: Deno.build.os === "windows", perms: { read: true, write: true } },
async function netUnixCloseWhileAccept(): Promise<void> {
const filePath = await Deno.makeTempFile();
const listener = Deno.listen({
@@ -189,7 +189,7 @@ unitTest({ perms: { net: true } }, async function netTcpDialListen(): Promise<
});
unitTest(
- { ignore: Deno.build.os === "win", perms: { read: true, write: true } },
+ { ignore: Deno.build.os === "windows", perms: { read: true, write: true } },
async function netUnixDialListen(): Promise<void> {
const filePath = await Deno.makeTempFile();
const listener = Deno.listen({ address: filePath, transport: "unix" });
@@ -225,7 +225,7 @@ unitTest(
);
unitTest(
- { ignore: Deno.build.os === "win", perms: { net: true } },
+ { ignore: Deno.build.os === "windows", perms: { net: true } },
async function netUdpSendReceive(): Promise<void> {
const alice = Deno.listen({ port: 4500, transport: "udp" });
assert(alice.addr.transport === "udp");
@@ -253,7 +253,7 @@ unitTest(
);
unitTest(
- { ignore: Deno.build.os === "win", perms: { read: true, write: true } },
+ { ignore: Deno.build.os === "windows", perms: { read: true, write: true } },
async function netUnixPacketSendReceive(): Promise<void> {
const filePath = await Deno.makeTempFile();
const alice = Deno.listen({ address: filePath, transport: "unixpacket" });
@@ -293,7 +293,7 @@ unitTest(
);
unitTest(
- { ignore: Deno.build.os === "win", perms: { net: true } },
+ { ignore: Deno.build.os === "windows", perms: { net: true } },
async function netUdpListenCloseWhileIterating(): Promise<void> {
const socket = Deno.listen({ port: 8000, transport: "udp" });
const nextWhileClosing = socket[Symbol.asyncIterator]().next();
@@ -306,7 +306,7 @@ unitTest(
);
unitTest(
- { ignore: Deno.build.os === "win", perms: { read: true, write: true } },
+ { ignore: Deno.build.os === "windows", perms: { read: true, write: true } },
async function netUnixListenCloseWhileIterating(): Promise<void> {
const filePath = Deno.makeTempFileSync();
const socket = Deno.listen({ address: filePath, transport: "unix" });
@@ -320,7 +320,7 @@ unitTest(
);
unitTest(
- { ignore: Deno.build.os === "win", perms: { read: true, write: true } },
+ { ignore: Deno.build.os === "windows", perms: { read: true, write: true } },
async function netUnixPacketListenCloseWhileIterating(): Promise<void> {
const filePath = Deno.makeTempFileSync();
const socket = Deno.listen({ address: filePath, transport: "unixpacket" });