File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -740,29 +740,3 @@ impl ProcessManager {
740740lazy_static:: lazy_static! {
741741 pub static ref PROCESS_MANAGER : Arc <ProcessManager > = Arc :: new( ProcessManager :: new( ) ) ;
742742}
743-
744- #[ cfg( test) ]
745- mod tests {
746- use super :: * ;
747-
748- #[ test]
749- fn test_process_manager_register ( ) {
750- let pm = ProcessManager :: new ( ) ;
751- let config = ProcessConfig {
752- id : "test" . into ( ) ,
753- name : "Test Process" . into ( ) ,
754- bin_path : "/bin/echo" . into ( ) ,
755- args : vec ! [ "hello" . into( ) ] ,
756- log_file : "/tmp/test.log" . into ( ) ,
757- working_dir : None ,
758- env_vars : None ,
759- } ;
760-
761- let result = pm. register ( config. clone ( ) ) ;
762- assert ! ( result. is_ok( ) ) ;
763-
764- // Registering same ID should fail
765- let result = pm. register ( config) ;
766- assert ! ( result. is_err( ) ) ;
767- }
768- }
You can’t perform that action at this time.
0 commit comments