Skip to content

Commit

Permalink
chore: fix up proto tests version: 109->110
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Sep 19, 2024
1 parent 9e8bb7d commit cf11f09
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ use crate::common;
//
// The message bytes are built from the output of `test_pb_from_to()`
#[test]
fn test_decode_v109_database_meta() -> anyhow::Result<()> {
let database_meta_v109 = vec![
fn test_decode_v110_database_meta() -> anyhow::Result<()> {
let database_meta_v110 = vec![
34, 10, 10, 3, 120, 121, 122, 18, 3, 102, 111, 111, 42, 2, 52, 52, 50, 10, 10, 3, 97, 98,
99, 18, 3, 100, 101, 102, 162, 1, 23, 50, 48, 49, 52, 45, 49, 49, 45, 50, 56, 32, 49, 50,
58, 48, 48, 58, 48, 57, 32, 85, 84, 67, 170, 1, 23, 50, 48, 49, 52, 45, 49, 49, 45, 50, 57,
32, 49, 50, 58, 48, 48, 58, 48, 57, 32, 85, 84, 67, 178, 1, 7, 102, 111, 111, 32, 98, 97,
114, 232, 1, 1, 160, 6, 109, 168, 6, 24,
114, 232, 1, 1, 160, 6, 110, 168, 6, 24,
];

let want = || mt::DatabaseMeta {
Expand All @@ -52,7 +52,7 @@ fn test_decode_v109_database_meta() -> anyhow::Result<()> {
};

common::test_pb_from_to(func_name!(), want())?;
common::test_load_old(func_name!(), database_meta_v109.as_slice(), 109, want())
common::test_load_old(func_name!(), database_meta_v110.as_slice(), 110, want())
}

fn s(ss: impl ToString) -> String {
Expand Down

0 comments on commit cf11f09

Please sign in to comment.