chore(cli/tests): disable flaky test on macos ci (#11726)

Refs #11580.
This commit is contained in:
Ben Noordhuis 2021-08-16 16:15:00 +02:00 committed by GitHub
parent ddbb7b83f2
commit 245987b2a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,13 @@ import {
unitTest,
} from "./test_util.ts";
let isCI: boolean;
try {
isCI = Deno.env.get("CI") !== undefined;
} catch {
isCI = true;
}
unitTest({ perms: { net: true } }, function netTcpListenClose() {
const listener = Deno.listen({ hostname: "127.0.0.1", port: 3500 });
assert(listener.addr.transport === "tcp");
@ -545,6 +552,8 @@ unitTest(
unitTest(
{
// https://github.com/denoland/deno/issues/11580
ignore: Deno.build.os === "darwin" && isCI,
perms: { net: true },
},
async function netHangsOnClose() {