Skip to content

Commit

Permalink
added version check for the test for alternates.
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed May 11, 2022
1 parent aea6061 commit 29677fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/jetstream_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3108,6 +3108,10 @@ Deno.test("jetstream - pull error: js not enabled", async () => {
Deno.test("jetstream - mirror alternates", async () => {
const servers = await NatsServer.jetstreamCluster(3);
const nc = await connect({ port: servers[0].port });
if (await notCompatible(servers[0], nc, "2.8.2")) {
await NatsServer.stopAll([servers[1], servers[2]]);
return;
}

const jsm = await nc.jetstreamManager();
await jsm.streams.add({ name: "src", subjects: ["A", "B"] });
Expand Down

0 comments on commit 29677fa

Please sign in to comment.