Skip to content

Commit

Permalink
Merge pull request #6039 from onflow/leo/v0.33-fix-test
Browse files Browse the repository at this point in the history
Fixing test case
  • Loading branch information
zhangchiqing authored Jun 5, 2024
2 parents 05634d7 + 81d7199 commit a4ee58f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/util/cmd/update-commitment/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func updateCommitment(datadir, blockIDStr, commitStr string, force bool) error {
if err != nil {
return fmt.Errorf("could not create storages: %v", err)
}
defer db.Close()
defer db.Close()

commitToRemove, err := commits.ByBlockID(blockID)
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions storage/pebble/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ func TestRegisterBootstrap_IndexCheckpointFile_Happy(t *testing.T) {
rootHeight := uint64(10000)
unittest.RunWithTempDir(t, func(dir string) {
tries, registerIDs := simpleTrieWithValidRegisterIDs(t)
// exclude the empty trie
tries = tries[1:]
rootHash := tries[0].RootHash()
fileName := "simple-checkpoint"
require.NoErrorf(t, wal.StoreCheckpointV6Concurrently(tries, dir, fileName, log), "fail to store checkpoint")
Expand Down

0 comments on commit a4ee58f

Please sign in to comment.