diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2019-04-09 16:14:42 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2019-04-09 16:14:42 +0300 |
commit | 549f0873c2beed9517fb4006e1f0a63e0019abb3 (patch) | |
tree | fc77a4c4b93a333b08e7b7d8ff28248bd8f74ba6 /test/test_tls.py | |
parent | cfcf4da7fab046cf4dad47b499fa44abbc8f62b8 (diff) | |
download | unit-549f0873c2beed9517fb4006e1f0a63e0019abb3.tar.gz unit-549f0873c2beed9517fb4006e1f0a63e0019abb3.tar.bz2 |
Tests: wait_for_record() introduced.
Diffstat (limited to 'test/test_tls.py')
-rw-r--r-- | test/test_tls.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/test/test_tls.py b/test/test_tls.py index f9b0a978..dc570c34 100644 --- a/test/test_tls.py +++ b/test/test_tls.py @@ -13,14 +13,6 @@ class TestTLS(TestApplicationTLS): with open(self.testdir + '/unit.log', 'r', errors='ignore') as f: return re.findall(pattern, f.read()) - def wait_for_record(self, pattern): - for i in range(50): - with open(self.testdir + '/unit.log', 'r', errors='ignore') as f: - if re.search(pattern, f.read()) is not None: - break - - time.sleep(0.1) - def openssl_date_to_sec_epoch(self, date): return self.date_to_sec_epoch(date, '%b %d %H:%M:%S %Y %Z') |