Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: incorrect count of delayed jobs in the enqueueTransaction test #217

Merged
merged 2 commits into from
Sep 2, 2024

Conversation

ShookLyngs
Copy link
Collaborator

Changes

Fix

We initially thought that #208 was a redis-related issue, but the actual problem was that other tests had pushed delayed jobs to the queue right before this one. This means that jobs.delayed is not always guaranteed to be 1, depending on the execution order of the tests (they normally run in parallel, so the order is not always the same).

For example, check this action and search jobs-xxx for the log print of the jobs list, you should find 2 items in it, where one is our targeting item, and the other item belongs to another tests: https://github.com/ckb-cell/btc-assets-api/actions/runs/10662966768/job/29551165802#step:7:146

Copy link

vercel bot commented Sep 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
btc-assets-api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 2, 2024 8:20am

Copy link
Collaborator

@ahonn ahonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ahonn ahonn merged commit 32389cb into develop Sep 2, 2024
6 checks passed
@ahonn ahonn deleted the fix/208-jobs-delayed-count branch September 2, 2024 08:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A Redis-dependent test randomly fails
2 participants