Skip to content

Commit

Permalink
Core: fixed a test
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain committed Aug 14, 2020
1 parent 11fff92 commit 60a9c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon-chain/core/blocks/exit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ func TestProcessVoluntaryExits_AppliesCorrectStatus(t *testing.T) {
},
}

stateCopy := state.Copy()
newState, err := blocks.ProcessVoluntaryExits(context.Background(), state, block.Body)
require.NoError(t, err, "Could not process exits")
newRegistry := newState.Validators()
Expand All @@ -159,7 +160,6 @@ func TestProcessVoluntaryExits_AppliesCorrectStatus(t *testing.T) {
helpers.ActivationExitEpoch(state.Slot()/params.BeaconConfig().SlotsPerEpoch), newRegistry[0].ExitEpoch)
}

stateCopy := state.Copy()
// Check conformance with NoVerify Exit Method.
newState, err = blocks.ProcessVoluntaryExitsNoVerifySignature(stateCopy, block.Body)
require.NoError(t, err, "Could not process exits")
Expand Down

0 comments on commit 60a9c86

Please sign in to comment.