Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
Fix unit tests. (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrinandj committed Apr 16, 2019
1 parent 7217fd7 commit e80c6ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud_provider/aws/aws_minion_manager_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def test_cordon(self, mock_get_name_for_instance, mock_check_call):
mock_get_name_for_instance.return_value = "ip-of-fake-node-name"
awsmm.cordon_node("ip-of-fake-node")
mock_check_call.assert_called_with(['kubectl', 'drain', 'ip-of-fake-node-name',
'--ignore-daemonsets=true', '--delete-local-data=true'])
'--ignore-daemonsets=true', '--delete-local-data=true', '--force', '--grace-period=-1'])

mock_check_call.side_effect = [Exception("Test"), True]
awsmm.cordon_node("ip-of-fake-node")
Expand Down

0 comments on commit e80c6ec

Please sign in to comment.