You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✓ src/core/__tests__/Scheduler.test.ts (12 tests) 70ms 9 MB heap used
✓ src/adapters/PrismaAdapter/__tests__/PrismaAdapter.test.ts (21 tests) 141ms 11 MB heap used
✓ src/core/__tests__/JobManager.test.ts (13 tests) 65ms 10 MB heap used
❯ src/core/__tests__/Worker.test.ts (28 tests | 1 failed) 113ms 12 MB heap used
× run > will try to find jobsin a loop until`forever` is set to `false`
→ expected "spy" to be called 2 times, but got 3 times
✓ src/core/__tests__/Executor.test.ts (11 tests) 53ms 9 MB heap used
✓ src/adapters/BaseAdapter/__tests__/BaseAdapter.test.ts (2 tests) 4ms 8 MB heap used
✓ src/bins/__tests__/rw-jobs-worker.test.ts (4 tests) 8ms 11 MB heap used
✓ src/bins/__tests__/rw-jobs.test.ts (6 tests) 10ms 11 MB heap used
✓ src/__tests__/setupEnv.test.ts (2 tests) 4ms 8 MB heap used
⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
FAIL src/core/__tests__/Worker.test.ts > run > will try to find jobsin a loop until`forever` is set to `false`
AssertionError: expected "spy" to be called 2 times, but got 3 times
❯ src/core/__tests__/Worker.test.ts:301:26
299| await new Promise((resolve) => setTimeout(resolve,20))
300| worker.forever = false
301| expect(adapter.find).toHaveBeenCalledTimes(2)
| ^
302| })
303|
Are you interested in working on this?
I'm interested in working on this
The text was updated successfully, but these errors were encountered:
Just a reminder to check
redwood/packages/jobs/src/core/__tests__/Worker.test.ts
Line 286 in 70a6bb8
This sometimes fails with 3 calls instead of 2 – probably a race condition.
Failure log from https://cloud.nx.app/runs/B3Di6rkdxZ/task/%40redwoodjs%2Fjobs%3Atest
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: