diff --git a/apps/system/components/ProcessManager/kata-proc-manager/src/proc_manager/mod.rs b/apps/system/components/ProcessManager/kata-proc-manager/src/proc_manager/mod.rs index 567dbad..f91ba8d 100644 --- a/apps/system/components/ProcessManager/kata-proc-manager/src/proc_manager/mod.rs +++ b/apps/system/components/ProcessManager/kata-proc-manager/src/proc_manager/mod.rs @@ -201,16 +201,13 @@ mod tests { } } impl ProcessManagerInterface for FakeManager { - fn install(&mut self, pkg_buffer: *const u8, pkg_buffer_size: u32) -> Result { + fn install(&mut self, pkg_buffer: *const u8, pkg_buffer_size: u32) -> Result { let str = (pkg_buffer as usize).to_string(); if self.bundles.contains_key(&str) { return Err(ProcessManagerError::BundleFound); } assert!(self.bundles.insert(str, pkg_buffer_size).is_none()); - Ok(Bundle { - app_id: (pkg_buffer as usize).to_string(), - data: [0u8; 64], - }) + Ok((pkg_buffer as usize).to_string()) } fn uninstall(&mut self, bundle_id: &str) -> Result<(), pme> { match self.bundles.remove(bundle_id) {