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

add concurrency unit tests #6642

Merged

Conversation

BeniaminDrasovean
Copy link
Contributor

@BeniaminDrasovean BeniaminDrasovean commented Nov 29, 2024

Reasoning behind the pull request

  • Missing unit tests

Proposed changes

  • Add unit tests for trie concurrency checks

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

…trie-concurrency-unit-tests

# Conflicts:
#	trie/patriciaMerkleTrie_test.go
@BeniaminDrasovean BeniaminDrasovean marked this pull request as ready for review December 9, 2024 12:24
@sasurobert sasurobert self-requested a review December 11, 2024 07:24
sasurobert
sasurobert previously approved these changes Dec 11, 2024
…trie-concurrency-unit-tests

# Conflicts:
#	trie/interface.go
@ssd04 ssd04 self-requested a review December 13, 2024 16:27
ssd04
ssd04 previously approved these changes Dec 16, 2024
})
}

func TestPatricianMerkleTrie_ConcurrentOperations(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

add concurrency test with all operations in parallel

Copy link
Contributor

Choose a reason for hiding this comment

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

or a TODO for this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will add for each PR the tests missing related to which trie func was refactored in that PR.

Base automatically changed from refactor-trie-mutex-usage to feat/trie-mutex-refactor December 18, 2024 09:23
@BeniaminDrasovean BeniaminDrasovean dismissed stale reviews from ssd04 and sasurobert December 18, 2024 09:23

The base branch was changed.

@BeniaminDrasovean BeniaminDrasovean merged commit 83a2462 into feat/trie-mutex-refactor Dec 18, 2024
5 checks passed
@BeniaminDrasovean BeniaminDrasovean deleted the trie-concurrency-unit-tests branch December 18, 2024 11:56
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.

3 participants