Skip to content

Commit

Permalink
fix: hanging tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0xnigir1 committed Oct 31, 2024
1 parent 99b75b9 commit 0000ae6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/data-flow/test/unit/orchestrator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,11 @@ describe("Orchestrator", { sequential: true }, () => {
);
});

afterAll(() => {
afterAll(async () => {
vi.clearAllMocks();

return new Promise((resolve) => setImmediate(resolve));
// Wait for any pending promises to resolve
await new Promise((resolve) => setImmediate(resolve));
});

describe("Event Processing Flow", () => {
Expand Down

0 comments on commit 0000ae6

Please sign in to comment.