Skip to content

Commit

Permalink
Working on coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rameshraghupathy committed Nov 14, 2024
1 parent 4d4c815 commit 7dc1ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonic-chassisd/tests/test_chassisd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ def mock_get_module(index):
mock_is_smartswitch.return_value = True

# Patch num_modules for the updater
with patch.object(daemon_chassisd.module_updater, 'num_modules', 1):
with patch.object(daemon_chassisd.module_updater, 'num_modules', 1), \
patch.object(daemon_chassisd.module_updater, 'get_module_admin_status', return_value='down'):
# Now run the function that sets the initial admin state
daemon_chassisd.set_initial_dpu_admin_state()
Expand Down

0 comments on commit 7dc1ab7

Please sign in to comment.