Skip to content

Commit c45c884

Browse files
committed
coverage
1 parent 0fb3c8e commit c45c884

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

python/paddle/fluid/tests/unittests/test_fleet_graph_executor.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,17 @@ def gen_data():
8080
cost_val = exe.run(feed=gen_data(), fetch_list=[avg_cost.name])
8181
print("cost of step[{}] = {}".format(i, cost_val))
8282

83-
proc_a = launch_func(node_func, node_a)
84-
proc_a.start()
83+
# rank 1
84+
proc_b = launch_func(node_func, node_b)
85+
proc_b.start()
8586

87+
# rank 0, for wait server ready coverage
8688
# just for coverage
87-
for key in node_b:
88-
os.environ[key] = node_b[key]
89+
for key in node_a:
90+
os.environ[key] = node_a[key]
8991
node_func()
9092

91-
proc_a.join()
93+
proc_b.join()
9294

9395

9496
if __name__ == "__main__":

0 commit comments

Comments
 (0)