Skip to content

Commit 55fd952

Browse files
rootulpclaude
andcommitted
fix: use NopLogger in fuzz test init to avoid testing.Verbose panic
TestingLogger() calls testing.Verbose() which panics when called from init() before testing.Parse() runs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9d57620 commit 55fd952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/fuzz/mempool/checktx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func init() {
2222

2323
cfg := config.DefaultMempoolConfig()
2424
cfg.Broadcast = false
25-
mempool = cat.NewTxPool(log.TestingLogger(), cfg, appConnMem, 0)
25+
mempool = cat.NewTxPool(log.NewNopLogger(), cfg, appConnMem, 0)
2626
}
2727

2828
func Fuzz(data []byte) int {

0 commit comments

Comments
 (0)