Skip to content

Commit

Permalink
testutil/promrated: fixing promrated network overview stats (#3234)
Browse files Browse the repository at this point in the history
Rated api seemed to change the url for this endpoint 👍🏼 

category: misc
ticket: #3233
  • Loading branch information
LukeHackett12 authored Aug 19, 2024
1 parent 85bd4b1 commit a79d57b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testutil/promrated/rated.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func getNetworkStatistics(ctx context.Context, ratedEndpoint string, ratedAuth s
return networkEffectivenessData{}, errors.Wrap(err, "parse rated endpoint")
}

url.Path = "/v0/eth/network/stats"
url.Path = "/v0/eth/network/overview"

body, err := queryRatedAPI(ctx, url, ratedAuth, network)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion testutil/promrated/rated_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

func TestGetNetworkStatistics(t *testing.T) {
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
require.Equal(t, "/v0/eth/network/stats", r.URL.Path)
require.Equal(t, "/v0/eth/network/overview", r.URL.Path)

require.Equal(t, "Bearer auth", r.Header.Get("Authorization"))
require.Equal(t, "prater", r.Header.Get("X-Rated-Network"))
Expand Down

0 comments on commit a79d57b

Please sign in to comment.