File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed
util/movement/movement-core/src Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -303,19 +303,6 @@ impl Movement {
303
303
}
304
304
}
305
305
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
-
319
306
#[ cfg( test) ]
320
307
mod tests {
321
308
use super :: * ;
Original file line number Diff line number Diff line change @@ -99,11 +99,13 @@ mod tests {
99
99
100
100
#[ tokio:: test]
101
101
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 ) ;
103
103
let processor = ParseRestApi :: test ( ) ;
104
104
105
105
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 ?;
106
106
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
+
107
109
let result = processor. process_receiver ( & mut receiver) . await ?;
108
110
assert_eq ! ( result, Some ( RestApi { listen_url: "http://0.0.0.0:30731" . to_string( ) } ) ) ;
109
111
You can’t perform that action at this time.
0 commit comments