tests/client: Check and panic on protocol error

Otherwise it keeps inf-looping.
This commit is contained in:
Ivan Molodetskikh
2025-09-07 22:00:04 +03:00
parent 276275ff76
commit 28d072d893
+4
View File
@@ -199,6 +199,10 @@ impl Client {
self.event_loop
.dispatch(Duration::ZERO, &mut self.state)
.unwrap();
if let Some(error) = self.connection.protocol_error() {
panic!("{error}");
}
}
pub fn send_sync(&self) -> Arc<SyncData> {