Skip to content

Commit

Permalink
resharding test
Browse files Browse the repository at this point in the history
  • Loading branch information
wacban committed Nov 8, 2024
1 parent 796a7ae commit 2f5a7d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chain/chain/src/resharding/event_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ mod tests {
// Shard layouts V0 and V1 are rejected.
#[allow(deprecated)]
let layout_v0 = ShardLayout::v0(1, 0);
let layout_v1 = ShardLayout::v1_test();
let layout_v1 =
ShardLayout::v1(vec!["ccc".parse().unwrap(), "kkk".parse().unwrap()], None, 1);
assert!(ReshardingEventType::from_shard_layout(&layout_v0, block).is_err());
assert!(ReshardingEventType::from_shard_layout(&layout_v1, block).is_err());

Expand Down

0 comments on commit 2f5a7d2

Please sign in to comment.