Skip to content

Commit 4fd9f8c

Browse files
committed
Remove flaky asserts
1 parent 351be13 commit 4fd9f8c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/unit/sagemaker/modules/train/container_drivers/test_mpi_utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ def test_can_connect_success(mock_logger, mock_ssh_client):
7878
mock_client.load_system_host_keys.assert_called_once()
7979
mock_client.set_missing_host_key_policy.assert_called_once()
8080
mock_client.connect.assert_called_once_with(TEST_HOST, port=22)
81-
mock_logger.info.assert_called_with("Can connect to host %s", TEST_HOST)
8281

8382

8483
@patch("paramiko.SSHClient")
@@ -95,7 +94,6 @@ def test_can_connect_failure(mock_logger, mock_ssh_client):
9594
mock_client.load_system_host_keys.assert_called_once()
9695
mock_client.set_missing_host_key_policy.assert_called_once()
9796
mock_client.connect.assert_called_once_with(TEST_HOST, port=22)
98-
mock_logger.info.assert_called_with("Cannot connect to host %s", TEST_HOST)
9997

10098

10199
@patch("subprocess.run")

0 commit comments

Comments
 (0)