Skip to content

Commit

Permalink
apply linter pointed
Browse files Browse the repository at this point in the history
  • Loading branch information
torao committed Jun 9, 2022
1 parent 1652c5f commit 66c3d45
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/kms/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ func benchmarkGetPubKey(b *testing.B, pv types.PrivValidator) crypto.PubKey {

// evaluate execution results
require.NoError(b, err)
require.Equalf(b, len(pubKey.Bytes()), ed25519.PubKeySize, "PubKey: public key size = %d != %d", len(pubKey.Bytes()), ed25519.PubKeySize)
require.Equalf(b, len(pubKey.Bytes()), ed25519.PubKeySize, "PubKey: public key size = %d != %d",
len(pubKey.Bytes()), ed25519.PubKeySize)
return pubKey
}

Expand Down Expand Up @@ -122,7 +123,8 @@ func benchmarkSignVote(b *testing.B, pv types.PrivValidator, pubKey crypto.PubKe

// evaluate execution results
require.NoError(b, err)
require.Equalf(b, len(pb.Signature), ed25519.SignatureSize, "SignVote: signature size = %d != %d", len(pb.Signature), ed25519.SignatureSize)
require.Equalf(b, len(pb.Signature), ed25519.SignatureSize, "SignVote: signature size = %d != %d",
len(pb.Signature), ed25519.SignatureSize)
bytes := types.VoteSignBytes(chainID, pb)
require.Truef(b, pubKey.VerifySignature(bytes, pb.Signature), "SignVote: signature verification")
}
Expand Down Expand Up @@ -156,7 +158,8 @@ func benchmarkSignProposal(b *testing.B, pv types.PrivValidator, pubKey crypto.P

// evaluate execution results
require.NoError(b, err)
require.Equalf(b, len(pb.Signature), ed25519.SignatureSize, "ignProposal: signature size = %d != %d", len(pb.Signature), ed25519.SignatureSize)
require.Equalf(b, len(pb.Signature), ed25519.SignatureSize, "ignProposal: signature size = %d != %d",
len(pb.Signature), ed25519.SignatureSize)
bytes := types.ProposalSignBytes(chainID, pb)
require.Truef(b, pubKey.VerifySignature(bytes, pb.Signature), "SignProposal: signature verification")
}
Expand Down

0 comments on commit 66c3d45

Please sign in to comment.