mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 13:57:58 +00:00
av-store: clean up StoreAvailableData message (#3984)
* av-store: clean up StoreAvailableData message * fmt * use named fields
This commit is contained in:
@@ -336,7 +336,7 @@ fn backing_second_works() {
|
||||
assert_matches!(
|
||||
virtual_overseer.recv().await,
|
||||
AllMessages::AvailabilityStore(
|
||||
AvailabilityStoreMessage::StoreAvailableData(candidate_hash, _, _, _, tx)
|
||||
AvailabilityStoreMessage::StoreAvailableData { candidate_hash, tx, .. }
|
||||
) if candidate_hash == candidate.hash() => {
|
||||
tx.send(Ok(())).unwrap();
|
||||
}
|
||||
@@ -495,7 +495,7 @@ fn backing_works() {
|
||||
assert_matches!(
|
||||
virtual_overseer.recv().await,
|
||||
AllMessages::AvailabilityStore(
|
||||
AvailabilityStoreMessage::StoreAvailableData(candidate_hash, _, _, _, tx)
|
||||
AvailabilityStoreMessage::StoreAvailableData { candidate_hash, tx, .. }
|
||||
) if candidate_hash == candidate_a.hash() => {
|
||||
tx.send(Ok(())).unwrap();
|
||||
}
|
||||
@@ -853,7 +853,7 @@ fn backing_misbehavior_works() {
|
||||
assert_matches!(
|
||||
virtual_overseer.recv().await,
|
||||
AllMessages::AvailabilityStore(
|
||||
AvailabilityStoreMessage::StoreAvailableData(candidate_hash, _, _, _, tx)
|
||||
AvailabilityStoreMessage::StoreAvailableData { candidate_hash, tx, .. }
|
||||
) if candidate_hash == candidate_a.hash() => {
|
||||
tx.send(Ok(())).unwrap();
|
||||
}
|
||||
@@ -1027,7 +1027,7 @@ fn backing_dont_second_invalid() {
|
||||
assert_matches!(
|
||||
virtual_overseer.recv().await,
|
||||
AllMessages::AvailabilityStore(
|
||||
AvailabilityStoreMessage::StoreAvailableData(candidate_hash, _, _, _, tx)
|
||||
AvailabilityStoreMessage::StoreAvailableData { candidate_hash, tx, .. }
|
||||
) if candidate_hash == candidate_b.hash() => {
|
||||
tx.send(Ok(())).unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user