diff --git a/crates/voelin-gpui/src/app.rs b/crates/voelin-gpui/src/app.rs index 909911d..39feb0b 100644 --- a/crates/voelin-gpui/src/app.rs +++ b/crates/voelin-gpui/src/app.rs @@ -1309,9 +1309,12 @@ mod tests { } /// The real path of a connect: the action's method sends the command, the - /// engine (with no connector, so that nothing leaves the machine and no - /// sound device opens) takes it and answers with its events, which the - /// entity's loop turns into the state the rail shows. + /// engine (with no connector, so that no sound device opens) takes it and + /// answers with its events, which the entity's loop turns into the state + /// the rail shows. A connect also looks the server's gateway up, which is + /// DNS (SRV queries for the server's name) and docs/ci.md says tests use + /// none: the lookup is marked done before the connect, as a second connect + /// of a run finds it, so nothing leaves the machine. #[gpui::test] fn a_connect_reaches_the_engine_and_its_answer_reaches_the_rail(cx: &mut TestAppContext) { cx.executor().allow_parking(); @@ -1330,7 +1333,10 @@ mod tests { }; let app = cx.new(|cx| AppState::new(setup, cx)); let id = app.read_with(cx, |app, _| app.vm.bookmarks[0].id); - app.update(cx, |app, cx| app.connect_voice(cx)); + app.update(cx, |app, cx| { + app.vm.gateways_looked_up.insert(id); + app.connect_voice(cx) + }); app.read_with(cx, |app, _| { assert_eq!(app.vm.status, "Connecting to ts.example…"); });