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 {...@@ -221,9 +221,12 @@ mod tests {
221 let f = crate::transport_tests::Fixture::new();221 let f = crate::transport_tests::Fixture::new();
222 let (send, commands) = async_channel::bounded(4);222 let (send, commands) = async_channel::bounded(4);
223 let (done, finished) = mpsc::sync_channel(1);223 let (done, finished) = mpsc::sync_channel(1);
224 f.client224 // Build with the bridge registered so zbus waits for its method-call listener.
225 .object_server()225 // Registering it after build can drop the first call while that listener starts.
226 .at(226 let bridge = Builder::address(f.address.as_str())
227 .unwrap()
228 .method_timeout(DEADLINE)
229 .serve_at(
227 OBJECT,230 OBJECT,
228 Bridge {231 Bridge {
229 owner: f._server.unique_name().unwrap().to_string(),232 owner: f._server.unique_name().unwrap().to_string(),
...@@ -231,8 +234,10 @@ mod tests {...@@ -231,8 +234,10 @@ mod tests {
231 done,234 done,
232 },235 },
233 )236 )
237 .unwrap()
238 .build()
234 .unwrap();239 .unwrap();
235 let destination = f.client.unique_name().unwrap().to_string();240 let destination = bridge.unique_name().unwrap().to_string();
236 let stranger = Builder::address(f.address.as_str())241 let stranger = Builder::address(f.address.as_str())
237 .unwrap()242 .unwrap()
238 .method_timeout(DEADLINE)243 .method_timeout(DEADLINE)
...@@ -275,10 +280,7 @@ mod tests {...@@ -275,10 +280,7 @@ mod tests {
275 kwin.call::<_, _, ()>("Event", &("{\"event\":\"done\"}",))280 kwin.call::<_, _, ()>("Event", &("{\"event\":\"done\"}",))
276 .unwrap();281 .unwrap();
277 finished.recv_timeout(DEADLINE).unwrap();282 finished.recv_timeout(DEADLINE).unwrap();
278 f.client283 bridge.object_server().remove::<Bridge, _>(OBJECT).unwrap();
279 .object_server()
280 .remove::<Bridge, _>(OBJECT)
281 .unwrap();
282 }284 }
283285
284 #[test]286 #[test]