From d78cab15190aa02599cd98a189b8808ea1300bbe Mon Sep 17 00:00:00 2001 From: typhoonzero Date: Mon, 16 Apr 2018 17:36:03 +0800 Subject: [PATCH] update --- .../paddle/fluid/tests/unittests/test_dist_train_op.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_dist_train_op.py b/python/paddle/fluid/tests/unittests/test_dist_train_op.py index d3f4f74fe7..c7fdd06f10 100644 --- a/python/paddle/fluid/tests/unittests/test_dist_train_op.py +++ b/python/paddle/fluid/tests/unittests/test_dist_train_op.py @@ -33,17 +33,18 @@ class TestSendOp(unittest.TestCase): p.daemon = True p.start() - time.sleep(8) + time.sleep(10) with open("/tmp/paddle.selected_port", "r") as fn: selected_port = int(fn.readlines()[0]) self.init_client(place, selected_port) - # FIXME(typhoonzero): find a way to gracefully shutdown the server. - os.system("kill -9 %d" % p.pid) - p.join() self.run_local(place) self.assertTrue(numpy.allclose(self.local_out, self.dist_out)) + # FIXME(typhoonzero): find a way to gracefully shutdown the server. + os.system("kill -9 %d" % p.pid) + p.join() + def init_serv(self, place): main = fluid.Program() -- GitLab