Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchiqing committed Jun 5, 2024
1 parent 60a4a33 commit ed6d835
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storage/pebble/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func TestRegisterBootstrap_IndexCheckpointFile_Happy(t *testing.T) {
rootHeight := uint64(10000)
unittest.RunWithTempDir(t, func(dir string) {
tries, registerIDs := simpleTrieWithValidRegisterIDs(t)
// exclude the empty trie
rootHash := tries[0].RootHash()
fileName := "simple-checkpoint"
require.NoErrorf(t, wal.StoreCheckpointV6Concurrently(tries, dir, fileName, log), "fail to store checkpoint")
Expand Down Expand Up @@ -221,7 +222,7 @@ func trieWithValidRegisterIDs(t *testing.T, n uint16) ([]*trie.MTrie, []*flow.Re
// make sure it has at least 1 leaf node
require.GreaterOrEqual(t, depth, uint16(1))
require.NoError(t, err)
resultTries := []*trie.MTrie{emptyTrie, populatedTrie}
resultTries := []*trie.MTrie{populatedTrie}
return resultTries, resultRegisterIDs
}

Expand Down

0 comments on commit ed6d835

Please sign in to comment.