From 2ca9720702178fffb98fe6b6de51e89f897407f4 Mon Sep 17 00:00:00 2001 From: spencer-tb Date: Sun, 5 Apr 2026 20:57:46 +0100 Subject: [PATCH] tests: move block insertion debug output from stdout to stderr --- tests/block_test_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/block_test_util.go b/tests/block_test_util.go index 00411073e2..0943163e35 100644 --- a/tests/block_test_util.go +++ b/tests/block_test_util.go @@ -268,7 +268,7 @@ func (t *BlockTest) insertBlocks(blockchain *core.BlockChain) ([]btBlock, error) } if b.BlockHeader == nil { if data, err := json.MarshalIndent(cb.Header(), "", " "); err == nil { - fmt.Fprintf(os.Stdout, "block (index %d) insertion should have failed due to: %v:\n%v\n", + fmt.Fprintf(os.Stderr, "block (index %d) insertion should have failed due to: %v:\n%v\n", bi, b.ExpectException, string(data)) } return nil, fmt.Errorf("block (index %d) insertion should have failed due to: %v",