diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2021-01-14 03:04:20 +0000 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2021-01-14 03:04:20 +0000 |
commit | d43a84139d1adedbae8def67c8bbee09d8cf4581 (patch) | |
tree | 4e1b9ae1c6915e38fe0bf2de3d224cb9d1eb6c9b /test/test_go_application.py | |
parent | 5d983ea762eba5fe26a07defbc09eeec8ecc5aeb (diff) | |
download | unit-d43a84139d1adedbae8def67c8bbee09d8cf4581.tar.gz unit-d43a84139d1adedbae8def67c8bbee09d8cf4581.tar.bz2 |
Tests: added missing checks for configuration results.
Diffstat (limited to '')
-rw-r--r-- | test/test_go_application.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_go_application.py b/test/test_go_application.py index 8c77dfc5..e833d190 100644 --- a/test/test_go_application.py +++ b/test/test_go_application.py @@ -149,7 +149,7 @@ class TestGoApplication(TestApplicationGo): arg2 = '--cc-opt=\'-O0 -DNXT_DEBUG_MEMORY=1 -fsanitize=address\'' arg3 = '--debug' - self.conf( + assert 'success' in self.conf( '["' + arg1 + '", "' + arg2 + '", "' + arg3 + '"]', 'applications/command_line_arguments/arguments', ) @@ -163,15 +163,15 @@ class TestGoApplication(TestApplicationGo): args_path = 'applications/command_line_arguments/arguments' - self.conf('["0", "a", "$", ""]', args_path) + assert 'success' in self.conf('["0", "a", "$", ""]', args_path) assert self.get()['body'] == '0,a,$,', 'arguments' - self.conf('["-1", "b", "%"]', args_path) + assert 'success' in self.conf('["-1", "b", "%"]', args_path) assert self.get()['body'] == '-1,b,%', 'arguments change' - self.conf('[]', args_path) + assert 'success' in self.conf('[]', args_path) assert ( self.get()['headers']['Content-Length'] == '0' |