-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Tests for builder service #11214
Tests for builder service #11214
Conversation
@@ -295,3 +307,12 @@ func non200Err(response *http.Response) error { | |||
return errors.Wrap(ErrNotOK, errMessage.Message) | |||
} | |||
} | |||
|
|||
func covertEndPoint(ep string) network.Endpoint { |
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.
This would be useful as a general helper in a common location, we do something like this in execution service as well. Another PR will be great for this
This reverts commit c4c1016cb597b9340d1c81ab3816e037a6b97f9e.
Removing |
# Conflicts: # api/client/builder/client.go # beacon-chain/builder/option.go # beacon-chain/builder/service.go
Tests fail @rkapka |
# Conflicts: # beacon-chain/builder/service.go
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.
Thank you!
What type of PR is this?
Testing
What does this PR do? Why is it needed?
Adds tests to non-trivial functions of
beacon-chain/builder/service.go
. To make the service testable, a newBuilderClient
interface was created and the tight coupling between a concrete implementation of the builder and the service was removed. Currently a new builder is instantiated directly in the service's constructor. This PR shifts dependencies and makes the builder configurable via an option.