From 28b0e5d1978cd0c6a7e434a11543b4fa3c9c2922 Mon Sep 17 00:00:00 2001 From: teor Date: Tue, 29 Sep 2020 17:33:14 +1000 Subject: [PATCH] Improve a test failure message --- zebra-chain/src/block/tests/vectors.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zebra-chain/src/block/tests/vectors.rs b/zebra-chain/src/block/tests/vectors.rs index ebf262d2..16b2dba7 100644 --- a/zebra-chain/src/block/tests/vectors.rs +++ b/zebra-chain/src/block/tests/vectors.rs @@ -112,7 +112,8 @@ fn block_test_vectors_height(network: Network) { .expect("block is structurally valid"); assert_eq!( block.coinbase_height().expect("block height is valid").0, - height + height, + "deserialized height must match BTreeMap key height" ); } }