mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 17:31:05 +00:00
Fix flaky test (#9729)
* Fix flaky test * Restore cargo fmt Co-authored-by: Roman Proskuryakov <r.proskuryakoff@gmail.com>
This commit is contained in:
@@ -527,11 +527,12 @@ fn fallback_name_working() {
|
|||||||
// Wait for the `NotificationStreamOpened`.
|
// Wait for the `NotificationStreamOpened`.
|
||||||
loop {
|
loop {
|
||||||
match events_stream1.next().await.unwrap() {
|
match events_stream1.next().await.unwrap() {
|
||||||
Event::NotificationStreamOpened { protocol, negotiated_fallback, .. } => {
|
Event::NotificationStreamOpened { protocol, negotiated_fallback, .. }
|
||||||
assert_eq!(protocol, NEW_PROTOCOL_NAME);
|
if protocol == NEW_PROTOCOL_NAME =>
|
||||||
|
{
|
||||||
assert_eq!(negotiated_fallback, Some(PROTOCOL_NAME));
|
assert_eq!(negotiated_fallback, Some(PROTOCOL_NAME));
|
||||||
break
|
break
|
||||||
},
|
}
|
||||||
_ => {},
|
_ => {},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user