未验证 提交 a083c76a 编写于 作者: C Chen Weihang 提交者: GitHub

adjust signal failed wait time (#28640)

上级 361a5393
...@@ -49,7 +49,7 @@ class TestDygraphDataLoaderSingalHandler(unittest.TestCase): ...@@ -49,7 +49,7 @@ class TestDygraphDataLoaderSingalHandler(unittest.TestCase):
test_process.start() test_process.start()
set_child_signal_handler(id(self), test_process.pid) set_child_signal_handler(id(self), test_process.pid)
time.sleep(5) time.sleep(10)
except SystemError as ex: except SystemError as ex:
self.assertIn("Fatal", cpt.get_exception_message(ex)) self.assertIn("Fatal", cpt.get_exception_message(ex))
exception = ex exception = ex
...@@ -67,7 +67,7 @@ class TestDygraphDataLoaderSingalHandler(unittest.TestCase): ...@@ -67,7 +67,7 @@ class TestDygraphDataLoaderSingalHandler(unittest.TestCase):
test_process.start() test_process.start()
set_child_signal_handler(id(self), test_process.pid) set_child_signal_handler(id(self), test_process.pid)
time.sleep(3) time.sleep(10)
except SystemError as ex: except SystemError as ex:
self.assertIn("Segmentation fault", cpt.get_exception_message(ex)) self.assertIn("Segmentation fault", cpt.get_exception_message(ex))
exception = ex exception = ex
...@@ -85,7 +85,7 @@ class TestDygraphDataLoaderSingalHandler(unittest.TestCase): ...@@ -85,7 +85,7 @@ class TestDygraphDataLoaderSingalHandler(unittest.TestCase):
test_process.start() test_process.start()
set_child_signal_handler(id(self), test_process.pid) set_child_signal_handler(id(self), test_process.pid)
time.sleep(3) time.sleep(10)
except SystemError as ex: except SystemError as ex:
self.assertIn("Bus error", cpt.get_exception_message(ex)) self.assertIn("Bus error", cpt.get_exception_message(ex))
exception = ex exception = ex
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册