Skip to content

Commit

Permalink
fix config override
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan committed Apr 1, 2020
1 parent dbb4d02 commit d9fad84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions beacon-chain/p2p/fork_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ func TestStartDiscv5_SameForkDigests_DifferentNextForkData(t *testing.T) {

func TestDiscv5_AddRetrieveForkEntryENR(t *testing.T) {
c := params.BeaconConfig()
originalConfig := c
c.ForkVersionSchedule = map[uint64][]byte{
0: params.BeaconConfig().GenesisForkVersion,
1: {0, 0, 0, 1},
Expand All @@ -200,6 +201,7 @@ func TestDiscv5_AddRetrieveForkEntryENR(t *testing.T) {
c.NextForkEpoch = nextForkEpoch
c.NextForkVersion = nextForkVersion
params.OverrideBeaconConfig(c)
defer params.OverrideBeaconConfig(originalConfig)

// We simulate being in epoch 1.
secondsPerEpoch := params.BeaconConfig().SlotsPerEpoch * params.BeaconConfig().SecondsPerSlot
Expand Down

0 comments on commit d9fad84

Please sign in to comment.