mirror of
https://github.com/wassname/ray.git
synced 2026-08-04 13:14:14 +08:00
Start moving ray internal files to _private module (#10994)
This commit is contained in:
@@ -113,7 +113,8 @@ class TestSyncFunctionality(unittest.TestCase):
|
||||
}).trials
|
||||
|
||||
with patch.object(CommandBasedClient, "_execute") as mock_fn:
|
||||
with patch("ray.services.get_node_ip_address") as mock_sync:
|
||||
with patch(
|
||||
"ray._private.services.get_node_ip_address") as mock_sync:
|
||||
sync_config = tune.SyncConfig(
|
||||
sync_to_driver="echo {source} {target}")
|
||||
mock_sync.return_value = "0.0.0.0"
|
||||
@@ -209,7 +210,7 @@ class TestSyncFunctionality(unittest.TestCase):
|
||||
test_file_path = os.path.join(trial.logdir, "test.log2")
|
||||
self.assertFalse(os.path.exists(test_file_path))
|
||||
|
||||
with patch("ray.services.get_node_ip_address") as mock_sync:
|
||||
with patch("ray._private.services.get_node_ip_address") as mock_sync:
|
||||
mock_sync.return_value = "0.0.0.0"
|
||||
sync_config = tune.SyncConfig(sync_to_driver=sync_func_driver)
|
||||
[trial] = tune.run(
|
||||
|
||||
Reference in New Issue
Block a user