diff --git a/sonic-chassisd/tests/test_chassisd.py b/sonic-chassisd/tests/test_chassisd.py index a5031df08..64aa5199e 100644 --- a/sonic-chassisd/tests/test_chassisd.py +++ b/sonic-chassisd/tests/test_chassisd.py @@ -1207,6 +1207,7 @@ def mock_get_module(index): mock_module_updater.get_module_admin_status.return_value = 'down' # Set access of DPU0 Down + midplane_table = module_updater.midplane_table module.set_midplane_reachable(False) module_updater.check_midplane_reachability() fvs = midplane_table.get(name) @@ -1295,6 +1296,7 @@ def mock_get_module(index): mock_module_updater.get_module_admin_status.return_value = 'up' # Set access of DPU0 up + midplane_table = module_updater.midplane_table module.set_midplane_reachable(True) module_updater.check_midplane_reachability() fvs = midplane_table.get(name)