Skip to content

Commit

Permalink
debugging CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed Apr 9, 2024
1 parent ef8ada0 commit ccce096
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions jetstream/tests/next_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,15 @@ Deno.test("next - consumer not found", async () => {

const js = nc.jetstream();
const c = await js.consumers.get("A", "a");
(nc as NatsConnectionImpl).options.debug = true;
await c.delete();
console.log("----- waiting one second -----");
await delay(1000);
console.log("----- after one second -----");

const exited = assertRejects(
async () => {
await c.next({ expires: 1000 });
() => {
return c.next({ expires: 1000 });
},
Error,
"consumer not found",
Expand Down

0 comments on commit ccce096

Please sign in to comment.