Skip to content

Commit

Permalink
fix test generator (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyonur committed Jan 7, 2025
1 parent 1fdaab7 commit 38e1ffb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion triedb/pathdb/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,11 @@ func (t *tester) generate(parent common.Hash) (common.Hash, *trienode.MergedNode
dirties = make(map[common.Hash]struct{})
)
for i := 0; i < 20; i++ {
switch rand.Intn(opLen) {
op := createAccountOp
if i > 0 {
op = rand.Intn(opLen)
}
switch op {
case createAccountOp:
// account creation
addr := testutil.RandomAddress()
Expand Down

0 comments on commit 38e1ffb

Please sign in to comment.