Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Test updateInstanceWithTransaction in CandidateDeciderDao #611

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

patriciaahuang
Copy link
Contributor

Test updateInstanceWithTransaction by simulating concurrent updates, then checking that the total candidates rated is correct after all promises have been resolved.

@patriciaahuang patriciaahuang requested a review from a team as a code owner May 2, 2024 04:12
@dti-github-bot
Copy link
Member

dti-github-bot commented May 2, 2024

[diff-counting] Significant lines: 92.

const results = await Promise.all(promises);

// Verify proper number of candidates are rated
expect(results[4].candidates.length === 5);
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe also verify that for two updates to the same ID, that the latest rating and comment will persist?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants