Skip to content

Commit 6b82fa3

Browse files
committed
Added timer to log test.
1 parent 7ccae2d commit 6b82fa3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/test_http_request.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import unittest
77
import nginx
8+
import time
89
import sys
910
import re
1011

@@ -147,6 +148,9 @@ def test_log(self):
147148
r = self.http('/log')
148149
self.assertEqual(r.status, 200)
149150

151+
# wait for the log phase to finish
152+
time.sleep(.1)
153+
150154
log = open(self.__class__.ngx.log_file)
151155
m = None
152156
for line in log:

0 commit comments

Comments
 (0)