diff --git a/.denov b/.denov index ae99bf7e..12b531b5 100644 --- a/.denov +++ b/.denov @@ -1 +1 @@ -v0.32.0 \ No newline at end of file +v0.33.0 \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 91273f24..075ee427 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,4 +24,4 @@ jobs: - name: Run Tests run: | export PATH=$HOME/.local/bin:$PATH - deno test -A + make test diff --git a/Makefile b/Makefile index 4b61c3fa..58e260f7 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,4 @@ redis: - docker run -p 6379:6379 -d -t redis:5 \ No newline at end of file + docker run -p 6379:6379 -d -t redis:5 +test: + deno test -A *_test.ts \ No newline at end of file diff --git a/modules-lock.json b/modules-lock.json index 1ff9aac4..020db55c 100644 --- a/modules-lock.json +++ b/modules-lock.json @@ -1,12 +1,11 @@ { "https://deno.land/std": { - "version": "@v0.32.0", + "version": "@v0.33.0", "modules": [ "/util/async.ts", - "/testing/mod.ts", "/testing/asserts.ts", "/io/bufio.ts", "/fmt/colors.ts" ] } -} +} \ No newline at end of file diff --git a/modules.json b/modules.json index 1ff9aac4..81735bae 100644 --- a/modules.json +++ b/modules.json @@ -1,9 +1,8 @@ { "https://deno.land/std": { - "version": "@v0.32.0", + "version": "@v0.33.0", "modules": [ "/util/async.ts", - "/testing/mod.ts", "/testing/asserts.ts", "/io/bufio.ts", "/fmt/colors.ts" diff --git a/pipeline_test.ts b/pipeline_test.ts index 4fe50c2e..c784bafc 100644 --- a/pipeline_test.ts +++ b/pipeline_test.ts @@ -1,6 +1,6 @@ -import { runIfMain, test } from "./vendor/https/deno.land/std/testing/mod.ts"; import { assertEquals } from "./vendor/https/deno.land/std/testing/asserts.ts"; import { connect } from "./redis.ts"; +const { test } = Deno; const addr = { hostname: "127.0.0.1", @@ -99,4 +99,3 @@ test("pipeline in concurrent", async () => { ]); }); -runIfMain(import.meta); diff --git a/pubsub_test.ts b/pubsub_test.ts index 7f3601e4..bebc491b 100644 --- a/pubsub_test.ts +++ b/pubsub_test.ts @@ -1,8 +1,7 @@ -import { test } from "./vendor/https/deno.land/std/testing/mod.ts"; import { assertEquals } from "./vendor/https/deno.land/std/testing/asserts.ts"; import { connect } from "./redis.ts"; import { RedisPubSubMessage } from "./pubsub.ts"; - +const { test } = Deno; const addr = { hostname: "127.0.0.1", port: 6379 diff --git a/redis_test.ts b/redis_test.ts index 48fbbd2e..bf779606 100644 --- a/redis_test.ts +++ b/redis_test.ts @@ -1,14 +1,11 @@ import { connect, Redis } from "./redis.ts"; -import { - runIfMain, - setFilter, - test -} from "./vendor/https/deno.land/std/testing/mod.ts"; import { assertEquals, assertThrowsAsync, assertArrayContains } from "./vendor/https/deno.land/std/testing/asserts.ts"; +const { test } = Deno; + // can be substituted with env variable const addr = { hostname: "127.0.0.1", @@ -242,4 +239,3 @@ test(async function testDb1Option() { }); }); -runIfMain(import.meta); diff --git a/vendor/https/deno.land/std/fmt/colors.ts b/vendor/https/deno.land/std/fmt/colors.ts index 09f2f329..ac95f8de 100644 --- a/vendor/https/deno.land/std/fmt/colors.ts +++ b/vendor/https/deno.land/std/fmt/colors.ts @@ -1 +1 @@ -export * from "https://deno.land/std@v0.32.0/fmt/colors.ts"; +export * from "https://deno.land/std@v0.33.0/fmt/colors.ts"; diff --git a/vendor/https/deno.land/std/io/bufio.ts b/vendor/https/deno.land/std/io/bufio.ts index 57a18d86..8a72323b 100644 --- a/vendor/https/deno.land/std/io/bufio.ts +++ b/vendor/https/deno.land/std/io/bufio.ts @@ -1 +1 @@ -export * from "https://deno.land/std@v0.32.0/io/bufio.ts"; +export * from "https://deno.land/std@v0.33.0/io/bufio.ts"; diff --git a/vendor/https/deno.land/std/testing/asserts.ts b/vendor/https/deno.land/std/testing/asserts.ts index 6eb5332a..0951deaa 100644 --- a/vendor/https/deno.land/std/testing/asserts.ts +++ b/vendor/https/deno.land/std/testing/asserts.ts @@ -1 +1 @@ -export * from "https://deno.land/std@v0.32.0/testing/asserts.ts"; +export * from "https://deno.land/std@v0.33.0/testing/asserts.ts"; diff --git a/vendor/https/deno.land/std/testing/mod.ts b/vendor/https/deno.land/std/testing/mod.ts deleted file mode 100644 index 3e16dbfb..00000000 --- a/vendor/https/deno.land/std/testing/mod.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "https://deno.land/std@v0.32.0/testing/mod.ts"; diff --git a/vendor/https/deno.land/std/util/async.ts b/vendor/https/deno.land/std/util/async.ts index 3ff83ec0..94775aea 100644 --- a/vendor/https/deno.land/std/util/async.ts +++ b/vendor/https/deno.land/std/util/async.ts @@ -1 +1 @@ -export * from "https://deno.land/std@v0.32.0/util/async.ts"; +export * from "https://deno.land/std@v0.33.0/util/async.ts";