authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-09-07 19:43:37-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-07 19:43:37-07:00
log9fe4d6568b5e4852f6085d3a22dbc5aa3a632408
treed833771f9581fef5055bce06dcf35a75c6ed90d7
parent8588d7f63bf57e6285daafe035708cc22a99619c
signature Signed by PGP key B5690EEEBB952194

fix(native): wait for the KDE feedback test listener (#10645)


1 files changed, 10 insertions(+), 8 deletions(-)

native/kde-snap-shot/src/feedback.rs+10-8
......@@ -221,9 +221,12 @@ mod tests {
221221 let f = crate::transport_tests::Fixture::new();
222222 let (send, commands) = async_channel::bounded(4);
223223 let (done, finished) = mpsc::sync_channel(1);
224 f.client
225 .object_server()
226 .at(
224 // Build with the bridge registered so zbus waits for its method-call listener.
225 // Registering it after build can drop the first call while that listener starts.
226 let bridge = Builder::address(f.address.as_str())
227 .unwrap()
228 .method_timeout(DEADLINE)
229 .serve_at(
227230 OBJECT,
228231 Bridge {
229232 owner: f._server.unique_name().unwrap().to_string(),
......@@ -231,8 +234,10 @@ mod tests {
231234 done,
232235 },
233236 )
237 .unwrap()
238 .build()
234239 .unwrap();
235 let destination = f.client.unique_name().unwrap().to_string();
240 let destination = bridge.unique_name().unwrap().to_string();
236241 let stranger = Builder::address(f.address.as_str())
237242 .unwrap()
238243 .method_timeout(DEADLINE)
......@@ -275,10 +280,7 @@ mod tests {
275280 kwin.call::<_, _, ()>("Event", &("{\"event\":\"done\"}",))
276281 .unwrap();
277282 finished.recv_timeout(DEADLINE).unwrap();
278 f.client
279 .object_server()
280 .remove::<Bridge, _>(OBJECT)
281 .unwrap();
283 bridge.object_server().remove::<Bridge, _>(OBJECT).unwrap();
282284 }
283285
284286 #[test]