about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-11-06 10:30:44 +0800
committerEric Wong <normalperson@yhbt.net>2010-11-06 10:30:44 +0800
commit60a9ec94f1f738f881e67f0a881c44c104f07c04 (patch)
tree0bbef83b7f08107326cf0fd91fd73aa58a85605d /test
parent7987e1a4001491f8a494f3926037f8cbee713263 (diff)
downloadunicorn-60a9ec94f1f738f881e67f0a881c44c104f07c04.tar.gz
An easy combination of the existing HttpParser#keepalive? and
HttpParser#reset methods, this makes it easier to implement
persistence.
Diffstat (limited to 'test')
-rw-r--r--test/unit/test_http_parser_ng.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/test_http_parser_ng.rb b/test/unit/test_http_parser_ng.rb
index 699ee64..d430109 100644
--- a/test/unit/test_http_parser_ng.rb
+++ b/test/unit/test_http_parser_ng.rb
@@ -509,8 +509,9 @@ class HttpParserNgTest < Test::Unit::TestCase
     env1 = @parser.parse.dup
     assert_equal expect, env1
     assert_equal str, @parser.buf
-    assert @parser.keepalive?
-    @parser.reset
+    assert ! @parser.env.empty?
+    assert @parser.next?
+    assert @parser.env.empty?
     env2 = @parser.parse.dup
     assert_equal expect, env2
     assert_equal "", @parser.buf