From d9fe5282e37289e008375e86f05f678d38890e08 Mon Sep 17 00:00:00 2001 From: Chen Weihang Date: Mon, 9 Mar 2020 09:56:40 +0800 Subject: [PATCH] Adjust sleep time of main process in signal handler test (#22597), test=release/1.7 (#22901) --- .../fluid/tests/unittests/test_imperative_signal_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_imperative_signal_handler.py b/python/paddle/fluid/tests/unittests/test_imperative_signal_handler.py index 0f3033fe3b..38d169bc75 100644 --- a/python/paddle/fluid/tests/unittests/test_imperative_signal_handler.py +++ b/python/paddle/fluid/tests/unittests/test_imperative_signal_handler.py @@ -49,7 +49,7 @@ class TestDygraphDataLoaderSingalHandler(unittest.TestCase): test_process.start() set_child_signal_handler(id(self), test_process.pid) - time.sleep(1) + time.sleep(3) except core.EnforceNotMet as ex: self.assertIn("FatalError", cpt.get_exception_message(ex)) exception = ex @@ -67,7 +67,7 @@ class TestDygraphDataLoaderSingalHandler(unittest.TestCase): test_process.start() set_child_signal_handler(id(self), test_process.pid) - time.sleep(1) + time.sleep(3) except core.EnforceNotMet as ex: self.assertIn("FatalError", cpt.get_exception_message(ex)) exception = ex -- GitLab