summaryrefslogtreecommitdiffhomepage
path: root/test/test_python_application.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2018-12-25 17:22:32 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2018-12-25 17:22:32 +0300
commit59644130668c19522488932fbe894587e5616a94 (patch)
tree10d066b8ec6a20303a48b0a98af578ca7f7cd92a /test/test_python_application.py
parent4ccf0c8a17d4f481cbb9b4047da30cbec5497c46 (diff)
downloadunit-59644130668c19522488932fbe894587e5616a94.tar.gz
unit-59644130668c19522488932fbe894587e5616a94.tar.bz2
Tests: added delay to wait for error logging.
Diffstat (limited to 'test/test_python_application.py')
-rw-r--r--test/test_python_application.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_python_application.py b/test/test_python_application.py
index 9c2c762d..b28675f9 100644
--- a/test/test_python_application.py
+++ b/test/test_python_application.py
@@ -1,3 +1,4 @@
+import time
import unittest
import unit
@@ -105,6 +106,8 @@ class TestUnitPythonApplication(unit.TestUnitApplicationPython):
self.stop()
+ time.sleep(0.2)
+
self.assertIsNotNone(self.search_in_log(r'RuntimeError'),
'ctx iter atexit')