-
Notifications
You must be signed in to change notification settings - Fork 204
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
Bootstrap components #5584
Bootstrap components #5584
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## feat/test-only-processor-node #5584 +/- ##
=================================================================
+ Coverage 79.93% 79.99% +0.05%
=================================================================
Files 718 719 +1
Lines 94505 94567 +62
=================================================================
+ Hits 75540 75645 +105
+ Misses 13574 13526 -48
- Partials 5391 5396 +5
☔ View full report in Codecov by Sentry. |
"github.com/multiversx/mx-chain-go/sharding" | ||
) | ||
|
||
type ArgsBootstrapComponentsHolder struct { |
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.
add comment
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.
added
@@ -136,7 +137,7 @@ func CreateCoreComponentsHolder(args ArgsCoreComponentsHolder) (factory.CoreComp | |||
instance.alarmScheduler = &mock.AlarmSchedulerStub{} | |||
instance.syncTimer = &testscommon.SyncTimerStub{} | |||
// TODO discuss with Iulian about the round handler |
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.
is TODO still valid?
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.
Yes, we need a custom component for the "rounderer"
@@ -136,7 +137,7 @@ func CreateCoreComponentsHolder(args ArgsCoreComponentsHolder) (factory.CoreComp | |||
instance.alarmScheduler = &mock.AlarmSchedulerStub{} | |||
instance.syncTimer = &testscommon.SyncTimerStub{} | |||
// TODO discuss with Iulian about the round handler |
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.
Yes, we need a custom component for the "rounderer"
@@ -30,8 +31,12 @@ func createMockArgsTestOnlyProcessingNode(t *testing.T) ArgsTestOnlyProcessingNo | |||
err = LoadConfigFromFile(pathForPrefsConfig, &prefsConfig) | |||
assert.Nil(t, err) | |||
|
|||
workingDir, err := os.Getwd() |
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.
we can remove this and use t.TempDir() instead
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.
done
Reasoning behind the pull request
Pre-requisites
Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:
feat
branch created?feat
branch merging, do all satellite projects have a proper tag insidego.mod
?