Skip to content

Commit 624a578

Browse files
committed
Reduced to case with all sizes the same
1 parent 56f2ead commit 624a578

File tree

1 file changed

+3
-3
lines changed
  • runtimes/bulletin-polkadot/tests

1 file changed

+3
-3
lines changed

runtimes/bulletin-polkadot/tests/tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ fn transaction_storage_runtime_sizes() {
7979
2000, // 2 KB
8080
1 * 1024 * 1024, // 1 MB
8181
4 * 1024 * 1024, // 4 MB
82-
6 * 1024 * 1024, // 6 MB
83-
8 * 1024 * 1024, // 8 MB
82+
4 * 1024 * 1024, // another 4 MB (fails here)
83+
4 * 1024 * 1024, // another 4 MB
8484
];
8585
let total_bytes: u64 = sizes.iter().map(|s| *s as u64).sum();
8686

@@ -99,7 +99,7 @@ fn transaction_storage_runtime_sizes() {
9999
for size in sizes {
100100
let call = RuntimeCall::TransactionStorage(TxCall::<runtime::Runtime>::store { data: vec![0u8; size] });
101101
let res = construct_and_apply_extrinsic(alice_pair.clone(), call);
102-
assert!(res.is_ok(), "Failed at size={} bytes: {:?}", size, res);
102+
assert!(res.is_ok(), "Failed at size={} bytes: {:?}", block_number, res);
103103

104104
block_number += 1;
105105
run_to_block(block_number, || None);

0 commit comments

Comments
 (0)