Skip to content

Commit

Permalink
mock cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nagworld9 committed Dec 3, 2024
1 parent b863a09 commit 083a531
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/ga/test_cgroupconfigurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,6 @@ def mock_popen(command, *args, **kwargs):
command = command.replace('systemd-run', 'systemd-run syntax_error')
elif isinstance(command, list) and command[0] == 'systemd-run':
command = ['systemd-run', 'syntax_error'] + command[1:]
elif command == ['systemctl', 'daemon-reload']:
command = ['echo', 'systemctl', 'daemon-reload']

return original_popen(command, *args, **kwargs)

Expand Down

0 comments on commit 083a531

Please sign in to comment.