summaryrefslogtreecommitdiffhomepage
path: root/test/unit/applications/lang/java.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-09-25 19:21:42 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-09-25 19:21:42 +0300
commitd82f125368d7d19300789ddd41587c09ffdcf36a (patch)
treea3b690f11c898cd7c9674327400ebae1fca0158a /test/unit/applications/lang/java.py
parent5c6b01d76c329f4ddcc31378e4ec62123e804d01 (diff)
downloadunit-d82f125368d7d19300789ddd41587c09ffdcf36a.tar.gz
unit-d82f125368d7d19300789ddd41587c09ffdcf36a.tar.bz2
Tests: fixed hanging of Go tests.
This closes #319 issue on GitHub.
Diffstat (limited to 'test/unit/applications/lang/java.py')
-rw-r--r--test/unit/applications/lang/java.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/unit/applications/lang/java.py b/test/unit/applications/lang/java.py
index 40bf3662..bcf87f59 100644
--- a/test/unit/applications/lang/java.py
+++ b/test/unit/applications/lang/java.py
@@ -63,8 +63,12 @@ class TestApplicationJava(TestApplicationProto):
]
javac.extend(src)
- process = Popen(javac)
- process.communicate()
+ try:
+ process = Popen(javac)
+ process.communicate()
+
+ except:
+ self.fail('Cann\'t run javac process.')
self._load_conf(
{