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 queue resolution without error in between test case. #4323

Closed
wants to merge 2 commits into from

Conversation

garg3133
Copy link
Member

@garg3133 garg3133 commented Dec 5, 2024

No description provided.

Copy link

github-actions bot commented Dec 5, 2024

Status

  • ❌ No modified files found in the types directory.
    Please make sure to include types for any changes you have made. Thank you!.

@@ -127,7 +127,13 @@ class CommandQueue extends EventEmitter {

err = err || this.tree.returnError;

// only used in hooks
this.emit('queue:finished', err);
Copy link
Member Author

Choose a reason for hiding this comment

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

This was required to be executed before checking if the currentResult is resolved because some hooks are only resolved after the queue:finished event is fired and not firing it before the below condition was resulting in a deadlock where the currentResult won't be settled until the hooks are resolved and the hooks won't be resolved until the currentResult is settled and the queue:finished event is fired after it.

@garg3133
Copy link
Member Author

Closing this because we found a better solution in #4325

@garg3133 garg3133 closed this Jan 15, 2025
@garg3133 garg3133 deleted the fix-queue-resolution branch January 15, 2025 21:32
# 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.

1 participant