Skip to content

Commit

Permalink
added error log checks in the test file 000_init.t.
Browse files Browse the repository at this point in the history
  • Loading branch information
agentzh committed Apr 26, 2013
1 parent 4cfa7f7 commit 4ab3c76
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion t/000_init.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use Test::Nginx::Socket;

repeat_each(1);

plan tests => repeat_each() * blocks();
plan tests => repeat_each() * 2 * blocks();

$ENV{TEST_NGINX_POSTGRESQL_HOST} ||= '127.0.0.1';
$ENV{TEST_NGINX_POSTGRESQL_PORT} ||= 5432;
Expand Down Expand Up @@ -36,6 +36,8 @@ __DATA__
GET /init
--- error_code: 200
--- timeout: 10
--- no_error_log
[error]
Expand All @@ -50,6 +52,8 @@ GET /init
GET /init
--- error_code: 200
--- timeout: 10
--- no_error_log
[error]
Expand All @@ -64,6 +68,8 @@ GET /init
GET /init
--- error_code: 200
--- timeout: 10
--- no_error_log
[error]
Expand All @@ -78,6 +84,8 @@ GET /init
GET /init
--- error_code: 200
--- timeout: 10
--- no_error_log
[error]
Expand All @@ -95,6 +103,8 @@ GET /init
GET /init
--- error_code: 200
--- timeout: 10
--- no_error_log
[error]
Expand All @@ -109,6 +119,8 @@ GET /init
GET /init
--- error_code: 200
--- timeout: 10
--- no_error_log
[error]
Expand All @@ -126,6 +138,8 @@ GET /init
GET /init
--- error_code: 200
--- timeout: 10
--- no_error_log
[error]
Expand All @@ -140,6 +154,8 @@ GET /init
GET /init
--- error_code: 200
--- timeout: 10
--- no_error_log
[error]
Expand All @@ -154,3 +170,5 @@ GET /init
GET /init
--- error_code: 200
--- timeout: 10
--- no_error_log
[error]

0 comments on commit 4ab3c76

Please sign in to comment.