From 203c5d731dfbdde39f391c7b068f65cc87cbb0d1 Mon Sep 17 00:00:00 2001
From: "bodong.yang" <bodong.yang@tier4.jp>
Date: Fri, 11 Oct 2024 09:43:33 +0000
Subject: [PATCH] update test_cfg_consts accordingly

---
 tests/test_otaclient/test_configs/test_cfg_consts.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/tests/test_otaclient/test_configs/test_cfg_consts.py b/tests/test_otaclient/test_configs/test_cfg_consts.py
index a77aa6d1b..2871b9678 100644
--- a/tests/test_otaclient/test_configs/test_cfg_consts.py
+++ b/tests/test_otaclient/test_configs/test_cfg_consts.py
@@ -17,16 +17,14 @@
 
 from pytest_mock import MockerFixture
 
-from otaclient.configs import Consts
+from otaclient.configs import Consts, dynamic_root
 
 
 def test_cfg_consts_dynamic_root(mocker: MockerFixture):
     _real_root = "/host_root"
     mocked_consts = Consts()
-
     mocker.patch.object(mocked_consts, "_ACTIVE_ROOT", _real_root)
 
     assert mocked_consts.ACTIVE_ROOT == _real_root
-    assert mocked_consts.RUN_DIR == "/run/otaclient"
-    assert mocked_consts.BOOT_DPATH == "/host_root/boot"
+    assert dynamic_root(mocked_consts.BOOT_DPATH) == "/host_root/boot"
     assert mocked_consts.OTA_API_SERVER_PORT == 50051