Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Ricart <[email protected]>
  • Loading branch information
aricart committed Oct 29, 2024
1 parent 980838b commit 259fb3c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
10 changes: 8 additions & 2 deletions jetstream/tests/jscluster_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import { jetstream, jetstreamManager } from "../src/jsclient.ts";
import { connect, flakyTest, NatsServer, notCompatible } from "test_helpers";
import {
cleanup,
connect,
flakyTest,
jetstreamServerConf,
NatsServer,
notCompatible,
} from "test_helpers";
import {
DiscardPolicy,
RetentionPolicy,
Expand All @@ -15,7 +22,6 @@ import {
assertRejects,
fail,
} from "jsr:@std/assert";
import { cleanup, jetstreamServerConf } from "../../test_helpers/mod.ts";

Deno.test("jetstream - mirror alternates", async () => {
const servers = await NatsServer.jetstreamCluster(3);
Expand Down
2 changes: 1 addition & 1 deletion jetstream/tests/pushconsumers_ordered_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
_setup,
cleanup,
connect,
flakyTest,
jetstreamServerConf,
notCompatible,
} from "test_helpers";
Expand All @@ -30,7 +31,6 @@ import type {
} from "../src/pushconsumer.ts";
import { delay } from "@nats-io/nats-core/internal";
import type { NatsConnectionImpl } from "@nats-io/nats-core/internal";
import { flakyTest } from "../../test_helpers/mod.ts";

Deno.test("ordered push consumers - get", async () => {
const { ns, nc } = await _setup(connect, jetstreamServerConf());
Expand Down
9 changes: 7 additions & 2 deletions jetstream/tests/streams_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,20 @@
* limitations under the License.
*/

import { connect, notCompatible } from "test_helpers";
import {
_setup,
cleanup,
connect,
jetstreamServerConf,
notCompatible,
} from "test_helpers";
import { AckPolicy, jetstream, jetstreamManager } from "../src/mod.ts";

import {
assertEquals,
assertExists,
assertRejects,
} from "https://deno.land/[email protected]/assert/mod.ts";
import { _setup, cleanup, jetstreamServerConf } from "test_helpers";
import { initStream } from "./jstest_util.ts";
import type { NatsConnectionImpl } from "@nats-io/nats-core/internal";

Expand Down
2 changes: 1 addition & 1 deletion jetstream/tests/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
*/

import { delay } from "@nats-io/nats-core";
import { fail } from "node:assert";
import type { Consumer, Stream } from "../src/types.ts";
import { fail } from "jsr:@std/assert";
import { StreamImpl } from "../src/jsmstream_api.ts";
import { JetStreamApiCodes, JetStreamApiError } from "../src/jserrors.ts";

Expand Down
1 change: 0 additions & 1 deletion test_helpers/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import { compare, extend, parseSemVer } from "../core/src/internal_mod.ts";
import { NatsServer } from "./launcher.ts";
import { red, yellow } from "jsr:@std/fmt/colors";
import { connect } from "./connect.ts";
export { connect } from "./connect.ts";
import { ConnectFn } from "../core/src/core.ts";
export { check } from "./check.ts";
export { Lock } from "./lock.ts";
Expand Down

0 comments on commit 259fb3c

Please sign in to comment.