Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saolyn committed Jul 18, 2024
1 parent e7d4f25 commit 25e517a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion beacon-chain/rpc/endpoints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func Test_endpoints(t *testing.T) {
"/eth/v1/beacon/pool/sync_committees": {http.MethodPost},
"/eth/v1/beacon/pool/voluntary_exits": {http.MethodGet, http.MethodPost},
"/eth/v1/beacon/pool/bls_to_execution_changes": {http.MethodGet, http.MethodPost},
"/eth/v1/beacon/individual_votes": {http.MethodGet},
"/prysm/v1/beacon/individual_votes": {http.MethodPost},
}

lightClientRoutes := map[string][]string{
Expand Down
2 changes: 1 addition & 1 deletion beacon-chain/rpc/eth/beacon/handlers_validators_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ func TestServer_GetIndividualVotes_RequestFutureSlot(t *testing.T) {
Epoch: slots.ToEpoch(s.CoreService.GenesisTimeFetcher.CurrentSlot()) + 1,
}
errorResp, _ := individualVotesHelper(t, request, s)
require.StringContains(t, "Cannot retrieve information about an epoch in the future", errorResp)
require.StringContains(t, "cannot retrieve information about an epoch in the future", errorResp)
}

func addDefaultReplayerBuilder(s *Server, h stategen.HistoryAccessor) {
Expand Down
2 changes: 1 addition & 1 deletion beacon-chain/rpc/prysm/v1alpha1/beacon/assignments.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"google.golang.org/grpc/status"
)

const errEpoch = "Cannot retrieve information about an epoch in the future, current epoch %d, requesting %d"
const errEpoch = "cannot retrieve information about an epoch in the future, current epoch %d, requesting %d"

// ListValidatorAssignments retrieves the validator assignments for a given epoch,
// optional validator indices or public keys may be included to filter validator assignments.
Expand Down
2 changes: 1 addition & 1 deletion beacon-chain/rpc/prysm/v1alpha1/beacon/validators_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import (
)

const (
errNoEpochInfoError = "Cannot retrieve information about an epoch in the future"
errNoEpochInfoError = "cannot retrieve information about an epoch in the future"
)

func TestServer_GetValidatorActiveSetChanges_CannotRequestFutureEpoch(t *testing.T) {
Expand Down

0 comments on commit 25e517a

Please sign in to comment.