Permalink
Browse files

added a test for ngx.HTTP_GATEWAY_TIMEOUT.

  • Loading branch information...
1 parent a3bc3fc commit f88d229ce6d87e411f2a2b8929be33f496b4e632 @agentzh agentzh committed Dec 2, 2011
Showing with 14 additions and 0 deletions.
  1. +14 −0 t/019-const.t
View
@@ -32,3 +32,17 @@ GET /read
-4
-1
+
+
+=== TEST 2: http constants
+--- config
+ location /read {
+ content_by_lua '
+ ngx.say(ngx.HTTP_GATEWAY_TIMEOUT)
+ ';
+ }
+--- request
+GET /read
+--- response_body
+504
+

0 comments on commit f88d229

Please sign in to comment.