Skip to content

Commit 0eedbb6

Browse files
authored
chore: Always use request metadata in backward compatibility test (#2690)
This is a preparation step for [making request metadata non-optional](#2622). This will ensure further changes to the hashes affected by this change are due to something else (in a followup).
1 parent b1a8630 commit 0eedbb6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rs/state_manager/src/tree_hash.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ mod tests {
219219
for i in 1..6 {
220220
stream.push(
221221
RequestBuilder::new()
222-
.metadata((i % 5 != 0).then_some(RequestMetadata::new(
222+
.metadata(Some(RequestMetadata::new(
223223
i % 3,
224224
Time::from_nanos_since_unix_epoch(i % 2),
225225
)))
@@ -358,9 +358,9 @@ mod tests {
358358
// BACKWARD COMPATIBILITY CODE FOR OLD CERTIFICATION VERSIONS THAT
359359
// NEED TO BE SUPPORTED.
360360
let expected_hashes: [&str; 3] = [
361-
"D13F75C42D3E2BDA2F742510029088A9ADB119E30241AC969DE24936489168B5",
362-
"E739B8EA1585E9BB97988C80ED0C0CDFDF064D4BC5A2B6B06EB414BFF6139CCE",
363-
"31F4593CC82CDB0B858F190E00112AF4599B5333F7AED9403EEAE88B656738D5",
361+
"0BD567305B9828C7BDE2A03E25871C382742A2598308761A47745BAA9E3495FF",
362+
"28BCC63FA7C215C8308EE8201CDEBDC06B62AFB2E9F4C2AB31452A4DBBD73B90",
363+
"4677DFA14CC8B349B1F0D88651CD961FE8DF2E905C3C886B9116972D798B1C1E",
364364
];
365365
assert_eq!(expected_hashes.len(), all_supported_versions().count());
366366

0 commit comments

Comments
 (0)