Skip to content

Commit

Permalink
Fix linter complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed Dec 20, 2024
1 parent ae5ad95 commit 9296db4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions sql/malfeasance/malfeasance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,10 @@ func TestNodeIDProof(t *testing.T) {
err := malfeasance.AddProof(db, nodeID, nil, proof, 1, time.Now())
require.NoError(t, err)

domain, p, err := malfeasance.NodeIDProof(db, nodeID)
p, domain, err := malfeasance.NodeIDProof(db, nodeID)
require.NoError(t, err)
require.Equal(t, byte(1), domain)
require.Equal(t, proof, p)
require.Equal(t, 1, domain)
})

t.Run("node with proof and marriage ID returns no proof", func(t *testing.T) {
Expand Down Expand Up @@ -420,9 +420,9 @@ func TestMarriageProof(t *testing.T) {
nodeID2 := types.RandomNodeID()
require.NoError(t, malfeasance.SetMalicious(db, nodeID2, id, time.Now()))

domain, p, err := malfeasance.MarriageProof(db, id)
p, domain, err := malfeasance.MarriageProof(db, id)
require.NoError(t, err)
require.Equal(t, byte(1), domain)
require.Equal(t, proof, p)
require.Equal(t, 1, domain)
})
}
2 changes: 1 addition & 1 deletion systest/tests/steps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func TestStepReplaceNodes(t *testing.T) {
require.NoError(t, err)

var (
toDelete = rand.Intn(cctx.ClusterSize*2/10) + 1
toDelete = rand.Intn(cctx.ClusterSize*2/10) + 1
deleting []*cluster.NodeClient
)
for i := cl.Bootnodes(); i < cl.Total() && len(deleting) < toDelete; i++ {
Expand Down

0 comments on commit 9296db4

Please sign in to comment.