mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 02:17:58 +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`.
|
||||
loop {
|
||||
match events_stream1.next().await.unwrap() {
|
||||
Event::NotificationStreamOpened { protocol, negotiated_fallback, .. } => {
|
||||
assert_eq!(protocol, NEW_PROTOCOL_NAME);
|
||||
Event::NotificationStreamOpened { protocol, negotiated_fallback, .. }
|
||||
if protocol == NEW_PROTOCOL_NAME =>
|
||||
{
|
||||
assert_eq!(negotiated_fallback, Some(PROTOCOL_NAME));
|
||||
break
|
||||
},
|
||||
}
|
||||
_ => {},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user