fix new tests with PriorityOp
@@ -209,7 +209,7 @@ async fn test_operation_queues_time_lag() {
to: [2u8; 20].into(),
}),
deadline_block: 0,
- eth_hash: [2; 32].to_vec(),
+ eth_hash: [2; 32].into(),
eth_block: 1, // <- First operation goes to the first block.
},
PriorityOp {
@@ -221,7 +221,7 @@ async fn test_operation_queues_time_lag() {
to: Default::default(),
}),
deadline_block: 0,
- eth_hash: [3u8; 32].to_vec(),
+ eth_hash: [3; 32].into(),
eth_block: 100, // <-- Note 100th block, it will set the network block to 100.
},
PriorityOp {
@@ -233,7 +233,7 @@ async fn test_operation_queues_time_lag() {
to: Default::default(),
}),
deadline_block: 0,
- eth_hash: [3u8; 32].to_vec(),
+ eth_hash: [3; 32].into(),
eth_block: 110, // <-- This operation will get to the unconfirmed queue.
},
])
@@ -352,7 +352,7 @@ async fn test_restore_and_poll_time_lag() {
to: [2u8; 20].into(),
}),
deadline_block: 0,
- eth_hash: [2; 32].to_vec(),
+ eth_hash: [2; 32].into(),
eth_block: 1,
},
PriorityOp {
@@ -364,7 +364,7 @@ async fn test_restore_and_poll_time_lag() {
to: Default::default(),
}),
deadline_block: 0,
- eth_hash: [3u8; 32].to_vec(),
+ eth_hash: [3; 32].into(),
eth_block: 100,
},
])
