Skip to content

Commit

Permalink
Coreth sync (#1418)
Browse files Browse the repository at this point in the history
* fix test generator (#724)

* add go mod tidy check
  • Loading branch information
ceyonur authored Jan 7, 2025
1 parent 1fdaab7 commit 9d4ef1a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ jobs:
- name: Run actionlint
shell: bash
run: scripts/actionlint.sh
- name: go mod tidy
run: |
go mod tidy
git diff --exit-code
unit_test:
name: Golang Unit Tests (${{ matrix.os }})
Expand Down
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 9d4ef1a

Please sign in to comment.