Skip to content

Commit 597e19f

Browse files
committed
txpool: adapt tests to upstream wash 3-value signature
1 parent 559197e commit 597e19f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

txpool/tx_pool_benchmark_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func benchAddRemove(b *testing.B, workers, perWorker int, withWash bool) {
5252
go func() {
5353
defer close(washDone)
5454
for !stopWash.Load() {
55-
_, _, _, _ = pool.wash(best, true)
55+
_, _, _ = pool.wash(best, true)
5656
}
5757
}()
5858
}

txpool/tx_pool_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ func TestWashPromoteDrainsPendingCost(t *testing.T) {
662662
}
663663

664664
// Trigger wash to promote (executable) and account pending cost under the map lock.
665-
_, _, _, err := pool.wash(pool.repo.BestBlockSummary(), true)
665+
_, _, err := pool.wash(pool.repo.BestBlockSummary(), true)
666666
assert.Nil(t, err)
667667

668668
// Remove every object one by one; removal must drain the accounting exactly.

txpool/tx_pool_wash_race_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func TestConcurrentWashAddRemove(t *testing.T) {
7878
return
7979
default:
8080
}
81-
_, _, _, _ = pool.wash(best, true)
81+
_, _, _ = pool.wash(best, true)
8282
}
8383
})
8484
}

0 commit comments

Comments
 (0)