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

Fixing sharder unit tests #236

Merged
merged 19 commits into from
Jun 2, 2021
Merged

Fixing sharder unit tests #236

merged 19 commits into from
Jun 2, 2021

Conversation

MurashovVen
Copy link
Contributor

  • Removing printing out.
  • Creating custom mocks.
  • Removing initializing process of sharder tests (should reduce the risks of race conditions and increase readability).
  • Code refactoring.

@MurashovVen MurashovVen linked an issue May 4, 2021 that may be closed by this pull request
@platsko platsko requested review from platsko and Sriep May 4, 2021 13:15
@Sriep
Copy link
Contributor

Sriep commented May 5, 2021

With this, can we close PR #72 Add unit tests to sharder?

@Sriep
Copy link
Contributor

Sriep commented May 9, 2021

Why is code/go/0chain.net/mocks/core/datastore/custom.go in the datastore package while code/go/0chain.net/mocks/sharder/blockstore/custom.go is in the mocks package? I would have expected consistent package naming here.

# Conflicts:
#	code/go/0chain.net/sharder/block_test.go
#	code/go/0chain.net/sharder/blockdb/blockdb_test.go
- TestNotarizedBlockHandler
- TestBlockSummaryRequestHandler
code/go/0chain.net/mocks/core/datastore/custom.go Outdated Show resolved Hide resolved
code/go/0chain.net/mocks/sharder/blockstore/custom.go Outdated Show resolved Hide resolved
code/go/0chain.net/mocks/core/datastore/custom.go Outdated Show resolved Hide resolved
Sriep added 5 commits June 1, 2021 18:37
# Conflicts:
#	code/go/0chain.net/go.sum
#	code/go/0chain.net/sharder/blockstore/fs_store_test.go
#	code/go/0chain.net/sharder/sharder_init_test.go
@Sriep Sriep merged commit d358ddd into master Jun 2, 2021
@Sriep Sriep deleted the fix/sharder_unit_tests branch June 2, 2021 10:41
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.

Failing unit tests.
2 participants