Skip to content

Commit

Permalink
Factor in reviewer comments
Browse files Browse the repository at this point in the history
  • Loading branch information
HerbertJordan committed Sep 19, 2024
1 parent 7faa7c8 commit 0d2eeca
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions go/database/mpt/io/parallel_visit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ func TestVisit_CanHandleSlowConsumer(t *testing.T) {
if err != nil {
t.Fatalf("failed to open live db: %v", err)
}
defer func() {
if err := live.Close(); err != nil {
t.Fatalf("failed to close live db: %v", err)
}
}()

addr := common.Address{}
err = errors.Join(
Expand Down Expand Up @@ -201,12 +206,9 @@ func TestVisit_CanHandleSlowConsumer(t *testing.T) {
}

root := live.GetRootId()
if err := live.Close(); err != nil {
t.Fatalf("failed to close live db: %v", err)
}

// This visitor is stalling from time to time providing the pre-fetcher
// workers from rushing ahead and filling up the prefetch buffer.
// workers room to rush ahead and filling up the prefetch buffer.
numVisited := 0
visitor := makeNoResponseVisitor(func(mpt.Node, mpt.NodeInfo) error {
numVisited++
Expand Down

0 comments on commit 0d2eeca

Please sign in to comment.