Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
timwu20 committed Nov 6, 2024
1 parent 0f918fa commit 856edc4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions internal/primitives/state-machine/trie_backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,8 @@ func TestTrieBackend(t *testing.T) {

t.Run("proof_record_works_with_iter", func(t *testing.T) {
for _, stateVersion := range []storage.StateVersion{storage.StateVersionV0, storage.StateVersionV1} {
for _, sharedCache := range []*cache.SharedTrieCache[hash.H256]{cache.NewSharedTrieCache[hash.H256](1024 * 10), nil} {
for _, sharedCache := range []*cache.SharedTrieCache[hash.H256]{
cache.NewSharedTrieCache[hash.H256](1024 * 10), nil} {
// Run multiple times to have a different cache conditions.
for i := 0; i < 5; i++ {
if sharedCache != nil {
Expand Down Expand Up @@ -607,7 +608,8 @@ func TestTrieBackend(t *testing.T) {
require.Equal(t, []byte{i}, []byte(val))
}

for _, sharedCache := range []*cache.SharedTrieCache[hash.H256]{cache.NewSharedTrieCache[hash.H256](1024 * 10), nil} {
for _, sharedCache := range []*cache.SharedTrieCache[hash.H256]{
cache.NewSharedTrieCache[hash.H256](1024 * 10), nil} {
// Run multiple times to have a different cache conditions.
for i := 0; i < 5; i++ {
if sharedCache != nil {
Expand Down Expand Up @@ -899,7 +901,8 @@ func TestTrieBackend(t *testing.T) {
require.NoError(t, err)
require.Equal(t, childTrie2Val, []byte(val))

for _, sharedCache := range []*cache.SharedTrieCache[hash.H256]{cache.NewSharedTrieCache[hash.H256](1024 * 10), nil} {
for _, sharedCache := range []*cache.SharedTrieCache[hash.H256]{
cache.NewSharedTrieCache[hash.H256](1024 * 10), nil} {
// Run multiple times to have a different cache conditions.
for i := 0; i < 5; i++ {
if sharedCache != nil {
Expand Down

0 comments on commit 856edc4

Please sign in to comment.