Skip to content

Commit

Permalink
Merge pull request #529 from nats-io/bump-std
Browse files Browse the repository at this point in the history
[BUMP] [TESTS] std@0.190.0
  • Loading branch information
aricart committed Jun 6, 2023
2 parents d8191c9 + 6d79bf2 commit 79af166
Show file tree
Hide file tree
Showing 62 changed files with 75 additions and 75 deletions.
4 changes: 2 additions & 2 deletions bin/exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
* limitations under the License.
*/

import { parse } from "https://deno.land/std@0.177.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.190.0/flags/mod.ts";
import {
basename,
extname,
join,
resolve,
} from "https://deno.land/std@0.177.0/path/mod.ts";
} from "https://deno.land/std@0.190.0/path/mod.ts";

const argv = parse(
Deno.args,
Expand Down
2 changes: 1 addition & 1 deletion bin/fix-os.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { parse } from "https://deno.land/std@0.177.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.190.0/flags/mod.ts";
import { ObjectStoreImpl } from "https://raw.githubusercontent.com/nats-io/nats.deno/main/nats-base-client/objectstore.ts";
import {
connect,
Expand Down
2 changes: 1 addition & 1 deletion examples/bench.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env deno run --allow-all --unstable
import { parse } from "https://deno.land/std@0.177.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.190.0/flags/mod.ts";
import { Bench, connect, Metric, Nuid } from "../src/mod.ts";
const defaults = {
s: "127.0.0.1:4222",
Expand Down
2 changes: 1 addition & 1 deletion examples/nats-events.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env deno run --allow-all --unstable

import { parse } from "https://deno.land/std@0.177.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.190.0/flags/mod.ts";
import { connect, ConnectionOptions } from "../src/mod.ts";

const argv = parse(
Expand Down
2 changes: 1 addition & 1 deletion examples/nats-pub.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env deno run --allow-all --unstable

import { parse } from "https://deno.land/std@0.177.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.190.0/flags/mod.ts";
import {
connect,
ConnectionOptions,
Expand Down
2 changes: 1 addition & 1 deletion examples/nats-rep.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env deno run --allow-all --unstable

import { parse } from "https://deno.land/std@0.177.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.190.0/flags/mod.ts";
import {
connect,
ConnectionOptions,
Expand Down
2 changes: 1 addition & 1 deletion examples/nats-req.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env deno run --allow-all --unstable

import { parse } from "https://deno.land/std@0.177.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.190.0/flags/mod.ts";
import {
connect,
ConnectionOptions,
Expand Down
2 changes: 1 addition & 1 deletion examples/nats-sub.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env deno run --allow-all --unstable

import { parse } from "https://deno.land/std@0.177.0/flags/mod.ts";
import { parse } from "https://deno.land/std@0.190.0/flags/mod.ts";
import {
connect,
ConnectionOptions,
Expand Down
2 changes: 1 addition & 1 deletion examples/services/01_services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
ServiceMsg,
ServiceStats,
} from "../../src/mod.ts";
import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.190.0/testing/asserts.ts";

// connect to NATS on demo.nats.io
const nc = await connect({ servers: ["demo.nats.io"] });
Expand Down
2 changes: 1 addition & 1 deletion jetstream/tests/consumeropts_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
assert,
assertEquals,
assertThrows,
} from "https://deno.land/std@0.177.0/testing/asserts.ts";
} from "https://deno.land/std@0.190.0/testing/asserts.ts";

import {
ConsumerOpts,
Expand Down
2 changes: 1 addition & 1 deletion jetstream/tests/consumers_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* limitations under the License.
*/
import { initStream } from "./jstest_util.ts";
import { assertRejects } from "https://deno.land/std@0.125.0/testing/asserts.ts";
import { assertRejects } from "https://deno.land/std@0.190.0/testing/asserts.ts";
import {
assertEquals,
assertExists,
Expand Down
2 changes: 1 addition & 1 deletion jetstream/tests/consumersordered_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
assertEquals,
assertExists,
assertRejects,
} from "https://deno.land/std@0.125.0/testing/asserts.ts";
} from "https://deno.land/std@0.190.0/testing/asserts.ts";
import { DeliverPolicy, JsMsg } from "../mod.ts";
import { OrderedPullConsumerImpl } from "../consumer.ts";
import { deferred } from "../../nats-base-client/mod.ts";
Expand Down
2 changes: 1 addition & 1 deletion jetstream/tests/jetream409_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
import {
assertRejects,
assertStringIncludes,
} from "https://deno.land/std@0.177.0/testing/asserts.ts";
} from "https://deno.land/std@0.190.0/testing/asserts.ts";
import { initStream } from "./jstest_util.ts";
import {
cleanup,
Expand Down
2 changes: 1 addition & 1 deletion jetstream/tests/jetstream_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import {
assertRejects,
assertThrows,
fail,
} from "https://deno.land/std@0.177.0/testing/asserts.ts";
} from "https://deno.land/std@0.190.0/testing/asserts.ts";

import { assert } from "../../nats-base-client/denobuffer.ts";
import { JetStreamClientImpl, JetStreamSubscriptionImpl } from "../jsclient.ts";
Expand Down
2 changes: 1 addition & 1 deletion jetstream/tests/jsm_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
assertRejects,
assertThrows,
fail,
} from "https://deno.land/std@0.177.0/testing/asserts.ts";
} from "https://deno.land/std@0.190.0/testing/asserts.ts";

import { NatsConnectionImpl } from "../../nats-base-client/internal_mod.ts";
import {
Expand Down
2 changes: 1 addition & 1 deletion jetstream/tests/jsmsg_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import {
assertEquals,
fail,
} from "https://deno.land/std@0.177.0/testing/asserts.ts";
} from "https://deno.land/std@0.190.0/testing/asserts.ts";
import {
connect,
createInbox,
Expand Down
2 changes: 1 addition & 1 deletion jetstream/tests/jstest_util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

import { AckPolicy, nanos, PubAck, StreamConfig } from "../../src/mod.ts";
import { assert } from "https://deno.land/std@0.177.0/testing/asserts.ts";
import { assert } from "https://deno.land/std@0.190.0/testing/asserts.ts";
import {
Empty,
NatsConnection,
Expand Down
2 changes: 1 addition & 1 deletion jetstream/tests/kv_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import {
assertEquals,
assertRejects,
assertThrows,
} from "https://deno.land/std@0.177.0/testing/asserts.ts";
} from "https://deno.land/std@0.190.0/testing/asserts.ts";

import {
Base64KeyCodec,
Expand Down
6 changes: 3 additions & 3 deletions jetstream/tests/objectstore_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ import {
assertExists,
assertRejects,
equal,
} from "https://deno.land/std@0.177.0/testing/asserts.ts";
} from "https://deno.land/std@0.190.0/testing/asserts.ts";
import { DataBuffer } from "../../nats-base-client/databuffer.ts";
import { crypto } from "https://deno.land/std@0.177.0/crypto/mod.ts";
import { crypto } from "https://deno.land/std@0.190.0/crypto/mod.ts";
import { ObjectInfo, ObjectStoreMeta, StorageType } from "../mod.ts";
import { Empty, headers, StringCodec } from "../../src/mod.ts";
import { equals } from "https://deno.land/std@0.177.0/bytes/mod.ts";
import { equals } from "https://deno.land/std@0.190.0/bytes/mod.ts";
import { SHA256 } from "../../nats-base-client/sha256.js";
import { Base64UrlPaddedCodec } from "../../nats-base-client/base64.ts";
import { digestType } from "../objectstore.ts";
Expand Down
2 changes: 1 addition & 1 deletion jetstream/tests/streams_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
assertExists,
assertRejects,
} from "https://deno.land/std@0.179.0/testing/asserts.ts";
import { assertArrayIncludes } from "https://deno.land/std@0.75.0/testing/asserts.ts";
import { assertArrayIncludes } from "https://deno.land/std@0.190.0/testing/asserts.ts";
import {
cleanup,
jetstreamServerConf,
Expand Down
2 changes: 1 addition & 1 deletion tests/auth_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
assertEquals,
assertRejects,
fail,
} from "https://deno.land/std@0.177.0/testing/asserts.ts";
} from "https://deno.land/std@0.190.0/testing/asserts.ts";
import {
connect,
createInbox,
Expand Down
2 changes: 1 addition & 1 deletion tests/authenticator_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
tokenAuthenticator,
usernamePasswordAuthenticator,
} from "../nats-base-client/mod.ts";
import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.190.0/testing/asserts.ts";
import { nkeys } from "../nats-base-client/nkeys.ts";
import {
encodeAccount,
Expand Down
2 changes: 1 addition & 1 deletion tests/autounsub_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.190.0/testing/asserts.ts";

import { createInbox, Empty, ErrorCode, Subscription } from "../src/mod.ts";
import { cleanup, Lock, setup } from "./helpers/mod.ts";
Expand Down
2 changes: 1 addition & 1 deletion tests/basics_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
assertRejects,
assertThrows,
fail,
} from "https://deno.land/std@0.177.0/testing/asserts.ts";
} from "https://deno.land/std@0.190.0/testing/asserts.ts";

import { assertThrowsAsyncErrorCode } from "./helpers/asserts.ts";

Expand Down
2 changes: 1 addition & 1 deletion tests/bench_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
assert,
assertEquals,
assertThrows,
} from "https://deno.land/std@0.177.0/testing/asserts.ts";
} from "https://deno.land/std@0.190.0/testing/asserts.ts";
import { Bench, connect, createInbox } from "../src/mod.ts";
import { BenchOpts, Metric } from "../nats-base-client/bench.ts";

Expand Down
2 changes: 1 addition & 1 deletion tests/binary_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* limitations under the License.
*/

import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.190.0/testing/asserts.ts";
import { createInbox, Msg } from "../src/mod.ts";
import { deferred } from "../nats-base-client/internal_mod.ts";
import { cleanup, setup } from "./helpers/mod.ts";
Expand Down
2 changes: 1 addition & 1 deletion tests/buffer_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
assert,
assertEquals,
assertThrows,
} from "https://deno.land/std@0.177.0/testing/asserts.ts";
} from "https://deno.land/std@0.190.0/testing/asserts.ts";
import {
DenoBuffer,
MAX_SIZE,
Expand Down
2 changes: 1 addition & 1 deletion tests/clobber_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import { NatsServer } from "./helpers/launcher.ts";
import { createInbox, DataBuffer } from "../nats-base-client/internal_mod.ts";
import { connect } from "../src/mod.ts";
import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.190.0/testing/asserts.ts";

function makeBuffer(N: number): Uint8Array {
const buf = new Uint8Array(N);
Expand Down
2 changes: 1 addition & 1 deletion tests/codec_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* limitations under the License.
*/
import { JSONCodec, StringCodec } from "../nats-base-client/codec.ts";
import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.190.0/testing/asserts.ts";

Deno.test("codec - string", () => {
const sc = StringCodec();
Expand Down
2 changes: 1 addition & 1 deletion tests/databuffer_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.190.0/testing/asserts.ts";
import { DataBuffer } from "../nats-base-client/internal_mod.ts";

Deno.test("databuffer - empty", () => {
Expand Down
4 changes: 2 additions & 2 deletions tests/doublesubs_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import {
import {
assertArrayIncludes,
assertEquals,
} from "https://deno.land/std@0.177.0/testing/asserts.ts";
} from "https://deno.land/std@0.190.0/testing/asserts.ts";
import { extend } from "../nats-base-client/util.ts";
import { join, resolve } from "https://deno.land/std@0.177.0/path/mod.ts";
import { join, resolve } from "https://deno.land/std@0.190.0/path/mod.ts";

async function runDoubleSubsTest(tls: boolean) {
const cwd = Deno.cwd();
Expand Down
2 changes: 1 addition & 1 deletion tests/drain_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
assert,
assertEquals,
fail,
} from "https://deno.land/std@0.177.0/testing/asserts.ts";
} from "https://deno.land/std@0.190.0/testing/asserts.ts";
import { assertThrowsAsyncErrorCode } from "./helpers/asserts.ts";
import {
connect,
Expand Down
2 changes: 1 addition & 1 deletion tests/events_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
import { Lock, NatsServer, ServerSignals } from "../tests/helpers/mod.ts";
import { connect, Events, ServersChanged } from "../src/mod.ts";
import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.190.0/testing/asserts.ts";
import { delay, NatsConnectionImpl } from "../nats-base-client/internal_mod.ts";
import { setup } from "./helpers/mod.ts";

Expand Down
2 changes: 1 addition & 1 deletion tests/headers_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
assert,
assertEquals,
assertThrows,
} from "https://deno.land/std@0.177.0/testing/asserts.ts";
} from "https://deno.land/std@0.190.0/testing/asserts.ts";
import {
MsgHdrsImpl,
MsgImpl,
Expand Down
2 changes: 1 addition & 1 deletion tests/heartbeats_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
assert,
assertEquals,
fail,
} from "https://deno.land/std@0.177.0/testing/asserts.ts";
} from "https://deno.land/std@0.190.0/testing/asserts.ts";

import {
DebugEvents,
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers/asserts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
assert,
assertThrows,
fail,
} from "https://deno.land/std@0.177.0/testing/asserts.ts";
} from "https://deno.land/std@0.190.0/testing/asserts.ts";
import { isNatsError, NatsError } from "../../nats-base-client/core.ts";

export function assertErrorCode(err?: Error, ...codes: string[]) {
Expand Down
6 changes: 3 additions & 3 deletions tests/helpers/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
*/

import { NatsServer } from "./mod.ts";
import { parse } from "https://deno.land/std@0.177.0/flags/mod.ts";
import { rgb24 } from "https://deno.land/std@0.177.0/fmt/colors.ts";
import { setTimeout } from "https://deno.land/std@0.177.0/node/timers.ts";
import { parse } from "https://deno.land/std@0.190.0/flags/mod.ts";
import { rgb24 } from "https://deno.land/std@0.190.0/fmt/colors.ts";
import { setTimeout } from "https://deno.land/std@0.190.0/node/timers.ts";

const defaults = {
c: 3,
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers/conf_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

import { toConf } from "./launcher.ts";
import { assertEquals } from "https://deno.land/std@0.177.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.190.0/testing/asserts.ts";

Deno.test("conf - serializing simple", () => {
const x = {
Expand Down
6 changes: 3 additions & 3 deletions tests/helpers/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
* limitations under the License.
*/
// deno-lint-ignore-file no-explicit-any
import * as path from "https://deno.land/std@0.177.0/path/mod.ts";
import { rgb24 } from "https://deno.land/std@0.177.0/fmt/colors.ts";
import * as path from "https://deno.land/std@0.190.0/path/mod.ts";
import { rgb24 } from "https://deno.land/std@0.190.0/fmt/colors.ts";
import { check, jsopts } from "./mod.ts";
import {
Deferred,
Expand All @@ -24,7 +24,7 @@ import {
nuid,
timeout,
} from "../../nats-base-client/internal_mod.ts";
import { assert } from "https://deno.land/std@0.177.0/testing/asserts.ts";
import { assert } from "https://deno.land/std@0.190.0/testing/asserts.ts";

export const ServerSignals = Object.freeze({
QUIT: "SIGQUIT",
Expand Down
4 changes: 2 additions & 2 deletions tests/helpers/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

import { NatsServer } from "./launcher.ts";
import { compare, parseSemVer } from "../../nats-base-client/semver.ts";
import { red, yellow } from "https://deno.land/std@0.177.0/fmt/colors.ts";
import * as path from "https://deno.land/std@0.177.0/path/mod.ts";
import { red, yellow } from "https://deno.land/std@0.190.0/fmt/colors.ts";
import * as path from "https://deno.land/std@0.190.0/path/mod.ts";
import { nuid } from "../../nats-base-client/nuid.ts";
import { extend } from "../../nats-base-client/util.ts";
import { connect } from "../../src/connect.ts";
Expand Down
2 changes: 1 addition & 1 deletion tests/idleheartbeats_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { IdleHeartbeat } from "../nats-base-client/idleheartbeat.ts";
import {
assert,
assertEquals,
} from "https://deno.land/std@0.177.0/testing/asserts.ts";
} from "https://deno.land/std@0.190.0/testing/asserts.ts";
import { deferred } from "../nats-base-client/util.ts";

Deno.test("idleheartbeat - basic", async () => {
Expand Down
Loading

0 comments on commit 79af166

Please sign in to comment.