Skip to content

Commit

Permalink
Use MAX + 1 for protocol upgrade testing for now
Browse files Browse the repository at this point in the history
  • Loading branch information
bingyanglin committed Oct 29, 2024
1 parent 5fb7204 commit 24ad1a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/iota-benchmark/tests/simtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,8 @@ mod test {
}

async fn test_protocol_upgrade_compatibility_impl() {
let max_ver = ProtocolVersion::MAX_ALLOWED.as_u64();
// TODO: Remove the `+ 1` after we have Protocol version 2
let max_ver = ProtocolVersion::MAX.as_u64() + 1;
let manifest = iota_framework_snapshot::load_bytecode_snapshot_manifest();

let Some((&starting_version, _)) = manifest.range(..max_ver).last() else {
Expand Down

0 comments on commit 24ad1a9

Please sign in to comment.