From a083c76ab406093a5b6ffa9befd3c7b04c991b23 Mon Sep 17 00:00:00 2001 From: Chen Weihang Date: Mon, 16 Nov 2020 22:26:44 +0800 Subject: [PATCH] adjust signal failed wait time (#28640) --- .../fluid/tests/unittests/test_imperative_signal_handler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 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 d783a2cc752..775bf7941aa 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(5) + time.sleep(10) except SystemError as ex: self.assertIn("Fatal", 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(3) + time.sleep(10) except SystemError as ex: self.assertIn("Segmentation fault", cpt.get_exception_message(ex)) exception = ex @@ -85,7 +85,7 @@ class TestDygraphDataLoaderSingalHandler(unittest.TestCase): test_process.start() set_child_signal_handler(id(self), test_process.pid) - time.sleep(3) + time.sleep(10) except SystemError as ex: self.assertIn("Bus error", cpt.get_exception_message(ex)) exception = ex -- GitLab