дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-28 21:42:27 +02:00
fix(flutter): compile the Flutter tests on Windows
The process tests that use FlutterDaemon::with_executable and ToolServer::is_stopped only run on Unix, so on Windows both helpers were dead code and the test build failed under -D warnings.
Цей коміт міститься в:
1 джерело
834846840b
коміт
7cc52d7ed9
2 files changed
+2
-2
No files matched your search
@@ -213,7 +213,7 @@ impl FlutterDaemon {
|
||||
Self(Arc::new(Shared { root, sink, executable, state: Mutex::default() }))
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[cfg(all(test, unix))]
|
||||
fn with_executable(root: PathBuf, sink: SharedSink, executable: Option<PathBuf>) -> Self {
|
||||
Self::new(root, sink, Box::new(move || executable.clone()))
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ impl ToolServer {
|
||||
self.0.changed.notify_all();
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[cfg(all(test, unix))]
|
||||
pub(crate) fn is_stopped(&self) -> bool {
|
||||
matches!(self.0.state.lock().status, Status::Stopped)
|
||||
}
|
||||
|
||||
Reference in new issue
Заблокувати користувача