Skip to content

Commit

Permalink
Fix runOnce test
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Nov 18, 2024
1 parent 5e64200 commit 2055211
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions __tests__/runner.runOnce.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
databaseDetails,
getJobs,
makeSelectionOfJobs,
reset,
sleep,
withPgPool,
} from "./helpers";
Expand Down Expand Up @@ -220,6 +221,7 @@ test("gracefulShutdown", async () =>
},
},
};
await reset(pgPool, options);
utils = await makeWorkerUtils(options);
await utils.addJob("job1", { id: "test sleep" });
expect(_allWorkerPools).toHaveLength(0);
Expand Down

0 comments on commit 2055211

Please sign in to comment.