From 01df981a1d8b35bcfc1d6d2253cc695903531691 Mon Sep 17 00:00:00 2001 From: Yeastplume Date: Tue, 16 Oct 2018 14:39:51 +0100 Subject: [PATCH] [t4] fix header test sizes (#1756) --- core/tests/block.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/tests/block.rs b/core/tests/block.rs index 01c6578b6..93997ce52 100644 --- a/core/tests/block.rs +++ b/core/tests/block.rs @@ -257,7 +257,7 @@ fn empty_block_serialized_size() { let b = new_block(vec![], &keychain, &prev, &key_id); let mut vec = Vec::new(); ser::serialize(&mut vec, &b).expect("serialization failed"); - let target_len = 1_228; + let target_len = 1_223; assert_eq!(vec.len(), target_len); } @@ -270,7 +270,7 @@ fn block_single_tx_serialized_size() { let b = new_block(vec![&tx1], &keychain, &prev, &key_id); let mut vec = Vec::new(); ser::serialize(&mut vec, &b).expect("serialization failed"); - let target_len = 2_810; + let target_len = 2_805; assert_eq!(vec.len(), target_len); } @@ -283,7 +283,7 @@ fn empty_compact_block_serialized_size() { let cb: CompactBlock = b.into(); let mut vec = Vec::new(); ser::serialize(&mut vec, &cb).expect("serialization failed"); - let target_len = 1_236; + let target_len = 1_231; assert_eq!(vec.len(), target_len); } @@ -297,7 +297,7 @@ fn compact_block_single_tx_serialized_size() { let cb: CompactBlock = b.into(); let mut vec = Vec::new(); ser::serialize(&mut vec, &cb).expect("serialization failed"); - let target_len = 1_242; + let target_len = 1_237; assert_eq!(vec.len(), target_len); } @@ -316,7 +316,7 @@ fn block_10_tx_serialized_size() { let b = new_block(txs.iter().collect(), &keychain, &prev, &key_id); let mut vec = Vec::new(); ser::serialize(&mut vec, &b).expect("serialization failed"); - let target_len = 17_048; + let target_len = 17_043; assert_eq!(vec.len(), target_len,); } @@ -335,7 +335,7 @@ fn compact_block_10_tx_serialized_size() { let cb: CompactBlock = b.into(); let mut vec = Vec::new(); ser::serialize(&mut vec, &cb).expect("serialization failed"); - let target_len = 1_296; + let target_len = 1_291; assert_eq!(vec.len(), target_len,); }