Mercurial > hg > nginx-tests
comparison debug_connection.t @ 519:089c4174e269
Tests: reduced race in debug_connection tests.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 14 Jan 2015 00:13:59 +0300 |
parents | 43e05ac6c23c |
children | df3ab213fb0f |
comparison
equal
deleted
inserted
replaced
518:9edb609a2642 | 519:089c4174e269 |
---|---|
55 $t->try_run('no inet6 support')->plan(5); | 55 $t->try_run('no inet6 support')->plan(5); |
56 | 56 |
57 ############################################################################### | 57 ############################################################################### |
58 | 58 |
59 http_get('/'); | 59 http_get('/'); |
60 | |
61 select undef, undef, undef, 0.1; | |
60 is($t->read_file('debug1.log'), '', 'no debug_connection file 1'); | 62 is($t->read_file('debug1.log'), '', 'no debug_connection file 1'); |
61 is($t->read_file('debug2.log'), '', 'no debug_connection file 1'); | 63 is($t->read_file('debug2.log'), '', 'no debug_connection file 1'); |
62 | 64 |
63 http_get('/debug'); | 65 http_get('/debug'); |
66 | |
67 select undef, undef, undef, 0.1; | |
64 like($t->read_file('debug1.log'), qr/\[debug\]/, 'debug_connection file 1'); | 68 like($t->read_file('debug1.log'), qr/\[debug\]/, 'debug_connection file 1'); |
65 like($t->read_file('debug2.log'), qr/\[debug\]/, 'debug_connection file 2'); | 69 like($t->read_file('debug2.log'), qr/\[debug\]/, 'debug_connection file 2'); |
66 is($t->read_file('debug1.log'), $t->read_file('debug2.log'), | 70 is($t->read_file('debug1.log'), $t->read_file('debug2.log'), |
67 'debug_connection file1 file2 match'); | 71 'debug_connection file1 file2 match'); |
68 | 72 |