Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fxamacker committed May 17, 2024
1 parent 4951b91 commit 53c94b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion ledger/trie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (
"testing"

"github.com/fxamacker/cbor/v2"
"github.com/onflow/flow-go/model/flow"
"github.com/stretchr/testify/require"

"github.com/onflow/flow-go/model/flow"
)

// TestPayloadEquals tests equality of payloads. It tests:
Expand Down
4 changes: 2 additions & 2 deletions module/state_synchronization/indexer/indexer_core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,11 +640,11 @@ func ledgerPayloadWithValuesFixture(owner string, key string, value []byte) *led
k := ledger.Key{
KeyParts: []ledger.KeyPart{
{
Type: convert.KeyPartOwner,
Type: ledger.KeyPartOwner,
Value: []byte(owner),
},
{
Type: convert.KeyPartKey,
Type: ledger.KeyPartKey,
Value: []byte(key),
},
},
Expand Down
4 changes: 2 additions & 2 deletions storage/pebble/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ func randomRegisterPayloads(n uint16) []ledger.Payload {
o := make([]byte, 0, 8)
o = binary.BigEndian.AppendUint16(o, n)
k := ledger.Key{KeyParts: []ledger.KeyPart{
{Type: convert.KeyPartOwner, Value: o},
{Type: convert.KeyPartKey, Value: o},
{Type: ledger.KeyPartOwner, Value: o},
{Type: ledger.KeyPartKey, Value: o},
}}
// values are always 'v' for ease of testing/checking
v := ledger.Value{defaultRegisterValue}
Expand Down

0 comments on commit 53c94b2

Please sign in to comment.