Skip to content

Commit a2c522d

Browse files
committed
fixing failing tests
1 parent 1e0c85d commit a2c522d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/unit/test_training.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
CURRENT_HOST = HOST1
3232
CMD_ARGS = {"some_key": "some_value"}
3333
CLUSTER_WITH_PS = {
34-
"master": ["{}:8890".format(HOST1)],
35-
"worker": ["{}:8890".format(HOST2)],
34+
"master": ["{}:2222".format(HOST1)],
35+
"worker": ["{}:2222".format(HOST2)],
3636
"ps": ["{}:2223".format(HOST1), "{}:2223".format(HOST2)],
3737
}
3838
CLUSTER_WITH_MWMS = {"worker": ["{}:8890".format(HOST) for HOST in HOST_LIST]}
@@ -231,13 +231,13 @@ def test_train_distributed_no_ps(run, distributed_training_env):
231231
)
232232

233233

234-
def test_build_tf_config_for_mwms():
235-
assert training._build_tf_config_for_mwms(HOST_LIST, HOST1) == {
234+
def test_build_tf_config_for_mwm():
235+
assert training._build_tf_config_for_mwm(HOST_LIST, HOST1) == {
236236
"cluster": CLUSTER_WITH_MWMS,
237237
"environment": "cloud",
238238
"task": {"index": HOST_LIST.index(HOST1), "type": "worker"},
239239
}
240-
assert training._build_tf_config_for_mwms(HOST_LIST, HOST2) == {
240+
assert training._build_tf_config_for_mwm(HOST_LIST, HOST2) == {
241241
"cluster": CLUSTER_WITH_MWMS,
242242
"environment": "cloud",
243243
"task": {"index": HOST_LIST.index(HOST2), "type": "worker"},

0 commit comments

Comments
 (0)