Skip to content

Commit 0883953

Browse files
authored
Merge pull request #90 from movementlabsxyz/l-monninger/fix-movement-core
chore: fixes `movement-core`
2 parents 14ff488 + fb2e8a6 commit 0883953

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

util/movement/movement-core/src/movement.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -303,19 +303,6 @@ impl Movement {
303303
}
304304
}
305305

306-
/*impl Drop for Movement {
307-
fn drop(&mut self) {
308-
// Get the real path of the workspace, following symlinks
309-
if let Ok(real_path) = std::fs::canonicalize(self.workspace.get_workspace_path()) {
310-
std::process::Command::new("docker-compose")
311-
.arg("down")
312-
.current_dir(real_path)
313-
.output()
314-
.unwrap();
315-
}
316-
}
317-
}*/
318-
319306
#[cfg(test)]
320307
mod tests {
321308
use super::*;

util/movement/movement-core/src/movement/rest_api.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,13 @@ mod tests {
9999

100100
#[tokio::test]
101101
async fn test_rest_api() -> Result<(), anyhow::Error> {
102-
let (sender, mut receiver) = tokio::sync::mpsc::channel(1);
102+
let (sender, mut receiver) = tokio::sync::mpsc::channel(2);
103103
let processor = ParseRestApi::test();
104104

105105
sender.send(String::from("movement-full-node | 2025-05-06T08:49:06.205999Z INFO poem::server: listening addr=socket://0.0.0.0:30731")).await?;
106106

107+
sender.send(String::from("movement-full-node | 2025-05-06T08:49:06.205999Z INFO poem::server: listening addr=socket://0.0.0.0:30731")).await?;
108+
107109
let result = processor.process_receiver(&mut receiver).await?;
108110
assert_eq!(result, Some(RestApi { listen_url: "http://0.0.0.0:30731".to_string() }));
109111

0 commit comments

Comments
 (0)