Skip to content

Commit

Permalink
- fixes after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
iulianpascalau committed Feb 28, 2023
1 parent 6660220 commit 9f8b405
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions trie/patriciaMerkleTrie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ func TestPatriciaMerkleTrie_ConcurrentOperations(t *testing.T) {
numOperations := 1000
wg := sync.WaitGroup{}
wg.Add(numOperations)
numFunctions := 20
numFunctions := 19

initialRootHash, _ := tr.RootHash()

Expand Down Expand Up @@ -1027,14 +1027,11 @@ func TestPatriciaMerkleTrie_ConcurrentOperations(t *testing.T) {
// extremely hard to compute an existing hash due to concurrent changes.
_, _ = tr.VerifyProof([]byte("dog"), []byte("puppy"), [][]byte{[]byte("proof1")}) // this might error due to concurrent operations that change the roothash
case 16:
numNodes := tr.GetNumNodes()
assert.Equal(t, 4, numNodes.MaxLevel)
case 17:
sm := tr.GetStorageManager()
assert.NotNil(t, sm)
case 18:
case 17:
_ = tr.GetOldRoot()
case 19:
case 18:
trieStatsHandler := tr.(common.TrieStats)
_, err := trieStatsHandler.GetTrieStats("address", initialRootHash)
assert.Nil(t, err)
Expand Down

0 comments on commit 9f8b405

Please sign in to comment.