From 2d3c357ab61bbe2b6b5cb24ccb964105a250d5b7 Mon Sep 17 00:00:00 2001
From: licunlong <licunlong1@huawei.com>
Date: Thu, 20 Jul 2023 14:22:04 +0800
Subject: [PATCH] fix: fix the type error of test_get_service_type()

---
 coms/service/src/config.rs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/coms/service/src/config.rs b/coms/service/src/config.rs
index ec2ebf4..5205351 100644
--- a/coms/service/src/config.rs
+++ b/coms/service/src/config.rs
@@ -199,6 +199,7 @@ impl ServiceConfigData {
 mod tests {
     use crate::comm::ServiceUnitComm;
     use crate::config::ServiceConfig;
+    use crate::rentry::ServiceType;
     use libtests::get_project_root;
     use std::rc::Rc;
 
@@ -228,7 +229,7 @@ mod tests {
         let comm = Rc::new(ServiceUnitComm::new());
         let config = ServiceConfig::new(&comm);
 
-        let result = config.load(paths, false);
-        assert_eq!(config.service_type(), b"Simple")
+        assert!(config.load(paths, false).is_ok());
+        assert_eq!(config.service_type(), ServiceType::Simple)
     }
 }
-- 
2.33.0

