-
Notifications
You must be signed in to change notification settings - Fork 42
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
Fixing chaincore and core unit tests #218
Conversation
- removing printing out - add error checking
- removing printing out - refactoring code
- remove printing out - refactore code
- refactoring code - remove printing out
- removing old tests - adding new tests and increasing test coverage
- removing old tests - adding new tests and increasing test coverage
…ore_unit_tests # Conflicts: # code/go/0chain.net/go.sum
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All new unit tests should be checked with the -race
option to make sure they are no contributing race issues.
On running the tests with the -race
options two tests modified here produced errors.
- code/go/0chain.net/core/common/codec_test.go Preexisting code. Probably can be handled in Investigate ToMsgpack for race issues. #200, as the whole test needs a rethink.
- code/go/0chain.net/core/memorystore/store_test.go This is a new test and should not produce confounding race errors. If the race errors here are due to the unit test, they should be fixed. If they are due to the production code; Well done! The description needs updating and an issue raised to fix the race issues.
These errors occur because |
Fixed tests:
client_test
node_test
round_test
and adding error checkingwallet_test
and minor code refactoringdkg_test
and minor code refactoringcodec_test
util
package (merkle_patricia_trie_test
,merkle_patricia_trie2_test
,merkle_patricia_trie3_test
,merkle_trie_test
,mpt_nodedb_test
):removing logs, code refactoring .
memorystore
and adding newpersistencestore
and adding newencryption
package (bls0chain_test
,bls0chain_aggregate_test
,bls0chain_splittable_test
,ed25519_test
,encryption_test
):removing logs
Also added
mocks
package which includes mocks, used in added tests.