Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradStaniec committed Dec 16, 2024
1 parent 711afc3 commit d12dc02
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/replay/finality_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ func TestVoting(t *testing.T) {
registerMsgs := FpInfosToMsgs(fpInfos)
driver.SendTxWithMsgsFromDriverAccount(t, registerMsgs...)

var randInfoList []*datagen.RandListInfo
var msgList []*ftypes.MsgCommitPubRandList
for _, fpInfo := range fpInfos {
list, msg, err := datagen.GenRandomMsgCommitPubRandList(r, fpInfo.BTCPrivateKey, 1, 1000)
_, msg, err := datagen.GenRandomMsgCommitPubRandList(r, fpInfo.BTCPrivateKey, 1, 1000)
require.NoError(t, err)
msg.Signer = driver.GetDriverAccountAddress().String()
randInfoList = append(randInfoList, list)
msgList = append(msgList, msg)
}
// send all commit randomness messages in one block
Expand Down Expand Up @@ -80,7 +78,6 @@ func TestVoting(t *testing.T) {
require.Equal(t, 0, len(activeFps))

driver.SendTxWithMsgsFromDriverAccount(t, activationMsgs...)
activeFps = driver.GetActiveFpsAtCurrentHeight(t)

// on the last block all power events were queued for execution
// after this block execution they should be processed and our fps should
Expand Down Expand Up @@ -123,13 +120,11 @@ func FuzzJailing(f *testing.F) {
registerMsgs := FpInfosToMsgs(fpInfos)
driver.SendTxWithMsgsFromDriverAccount(t, registerMsgs...)

var randInfoList []*datagen.RandListInfo
var msgList []*ftypes.MsgCommitPubRandList
for _, fpInfo := range fpInfos {
list, msg, err := datagen.GenRandomMsgCommitPubRandList(r, fpInfo.BTCPrivateKey, 1, 1000)
_, msg, err := datagen.GenRandomMsgCommitPubRandList(r, fpInfo.BTCPrivateKey, 1, 1000)
require.NoError(t, err)
msg.Signer = driver.GetDriverAccountAddress().String()
randInfoList = append(randInfoList, list)
msgList = append(msgList, msg)
}
// send all commit randomness messages in one block
Expand Down Expand Up @@ -175,7 +170,6 @@ func FuzzJailing(f *testing.F) {
require.Equal(t, 0, len(activeFps))

driver.SendTxWithMsgsFromDriverAccount(t, activationMsgs...)
activeFps = driver.GetActiveFpsAtCurrentHeight(t)

// on the last block all power events were queued for execution
// after this block execution they should be processed and our fps should
Expand Down

0 comments on commit d12dc02

Please sign in to comment.