fuzz example

This commit is contained in:
alex.sharov 2021-07-29 15:48:23 +07:00
parent 77c876b46f
commit 10dccfe0c5

View File

@ -37,11 +37,12 @@ func FuzzPromoteStep(f *testing.F) {
PromoteStep(pending, baseFee, queue)
best, worst := pending.Best(), pending.Worst()
_ = best
//if best != nil && best.SubPool < 0b11110 {
// t.Fatalf("Pending best too small %b", best.SubPool)
//}
if worst != nil && worst.SubPool < 0b11000 {
t.Fatalf("Pending worst too small %b", worst.SubPool)
t.Fatalf("Pending worst too small %b,%b", worst.SubPool, s1)
}
})
}