Skip to content

Commit

Permalink
validatorapi: fixing failing tests (#2857)
Browse files Browse the repository at this point in the history
Fixing broken tests.

category: bug
ticket: none
  • Loading branch information
pinebit authored Feb 5, 2024
1 parent 2f95ebc commit c5764e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/validatorapi/router_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,11 @@ func TestRawRouter(t *testing.T) {
err := json.NewDecoder(res.Body).Decode(&resp)
require.NoError(t, err)
require.Len(t, resp.Data, 2)
require.EqualValues(t, eth2p0.ValidatorIndex(12), resp.Data[0].Index)
require.EqualValues(t, eth2p0.ValidatorIndex(35), resp.Data[1].Index)
if resp.Data[0].Index == eth2p0.ValidatorIndex(12) {
require.EqualValues(t, eth2p0.ValidatorIndex(35), resp.Data[1].Index)
} else {
require.EqualValues(t, eth2p0.ValidatorIndex(12), resp.Data[1].Index)
}
}

t.Run("via query ids", func(t *testing.T) {
Expand Down

0 comments on commit c5764e7

Please sign in to comment.