mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
tests/client: Check and panic on protocol error
Otherwise it keeps inf-looping.
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user