From a117d3d91ed2d647ed53e79b0f900f0ec4d1b08d Mon Sep 17 00:00:00 2001 From: Heyang Zhou Date: Thu, 23 Mar 2023 03:46:26 +0800 Subject: chore(ext/kv): disable ci tests on darwin (#18364) https://github.com/denoland/deno/issues/18363 --- cli/tests/unit/kv_test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cli/tests/unit') diff --git a/cli/tests/unit/kv_test.ts b/cli/tests/unit/kv_test.ts index c50e52c52..256060ccc 100644 --- a/cli/tests/unit/kv_test.ts +++ b/cli/tests/unit/kv_test.ts @@ -7,6 +7,13 @@ import { assertThrows, } from "./test_util.ts"; +let isCI: boolean; +try { + isCI = Deno.env.get("CI") !== undefined; +} catch { + isCI = true; +} + Deno.test({ name: "openKv :memory: no permissions", permissions: {}, @@ -36,6 +43,8 @@ Deno.test({ function dbTest(name: string, fn: (db: Deno.Kv) => Promise) { Deno.test({ name, + // https://github.com/denoland/deno/issues/18363 + ignore: Deno.build.os === "darwin" && isCI, async fn() { const db: Deno.Kv = await Deno.openKv( ":memory:", -- cgit v1.2.3