Skip to content

Commit

Permalink
chore: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Dec 5, 2024
1 parent 24d1140 commit c8e5f78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_job_scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@ describe('Job Scheduler', function () {
});
});

it('should repeat 7:th day every month at 9:25', async function () {
it.only('should repeat 7:th day every month at 9:25', async function () {
this.timeout(8000);

const date = new Date('2017-02-02 7:21:42');
Expand All @@ -1194,6 +1194,7 @@ describe('Job Scheduler', function () {
const worker = new Worker(
queueName,
async () => {
console.log(new Date());
nextTick();
},
{
Expand All @@ -1209,6 +1210,7 @@ describe('Job Scheduler', function () {
const completing = new Promise<void>((resolve, reject) => {
worker.on('completed', async job => {
try {
console.log('completed', new Date());
if (prev) {
expect(prev.timestamp).to.be.lt(job.timestamp);
const processedOn = new Date(job.processedOn!);
Expand Down

0 comments on commit c8e5f78

Please sign in to comment.