Skip to content

Commit

Permalink
fix UT
Browse files Browse the repository at this point in the history
Signed-off-by: Mai Bui <maibui@microsoft.com>
  • Loading branch information
maipbui committed Sep 14, 2023
1 parent 388574c commit 3fd1e51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/vlan_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,10 +630,10 @@ def test_config_vlan_del_last_vlan(self):
print(result.exit_code)
print(result.output)
mock_run_command.assert_has_calls([
mock.call("docker exec -i swss supervisorctl status ndppd", ignore_error=True, return_cmd=True),
mock.call("docker exec -i swss supervisorctl stop ndppd", ignore_error=True, return_cmd=True),
mock.call("docker exec -i swss rm -f /etc/supervisor/conf.d/ndppd.conf", ignore_error=True, return_cmd=True),
mock.call("docker exec -i swss supervisorctl update", return_cmd=True)
mock.call(['docker', 'exec', '-i', 'swss', 'supervisorctl', 'status', 'ndppd'], ignore_error=True, return_cmd=True),
mock.call(['docker', 'exec', '-i', 'swss', 'supervisorctl', 'stop', 'ndppd'], ignore_error=True, return_cmd=True),
mock.call(['docker', 'exec', '-i', 'swss', 'rm', '-f', '/etc/supervisor/conf.d/ndppd.conf'], ignore_error=True, return_cmd=True),
mock.call(['docker', 'exec', '-i', 'swss', 'supervisorctl', 'update'], return_cmd=True)
])
assert result.exit_code == 0

Expand Down

0 comments on commit 3fd1e51

Please sign in to comment.