Skip to content

Commit 2ca9720

Browse files
committed
tests: move block insertion debug output from stdout to stderr
1 parent 6f0ae11 commit 2ca9720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/block_test_util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ func (t *BlockTest) insertBlocks(blockchain *core.BlockChain) ([]btBlock, error)
268268
}
269269
if b.BlockHeader == nil {
270270
if data, err := json.MarshalIndent(cb.Header(), "", " "); err == nil {
271-
fmt.Fprintf(os.Stdout, "block (index %d) insertion should have failed due to: %v:\n%v\n",
271+
fmt.Fprintf(os.Stderr, "block (index %d) insertion should have failed due to: %v:\n%v\n",
272272
bi, b.ExpectException, string(data))
273273
}
274274
return nil, fmt.Errorf("block (index %d) insertion should have failed due to: %v",

0 commit comments

Comments
 (0)