mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Prevent timing failure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b89bd51d9c
commit
10c73a7b44
1 changed files with 1 additions and 1 deletions
|
|
@ -134,6 +134,7 @@ class CGIHeaderTest < Test::Unit::TestCase
|
|||
## 'nph' is true
|
||||
ENV['SERVER_SOFTWARE'] = 'Apache 2.2.0'
|
||||
actual1 = cgi.header('nph'=>true)
|
||||
now = Time.now
|
||||
## when old IIS, NPH-mode is forced
|
||||
ENV['SERVER_SOFTWARE'] = 'IIS/4.0'
|
||||
actual2 = cgi.header
|
||||
|
|
@ -143,7 +144,6 @@ class CGIHeaderTest < Test::Unit::TestCase
|
|||
actual4 = cgi.header
|
||||
actual5 = cgi.header('status'=>'REDIRECT', 'location'=>'http://www.example.com/')
|
||||
## assertion
|
||||
now = Time.now
|
||||
expected = "HTTP/1.1 200 OK\r\n"
|
||||
expected << "Date: #{CGI.rfc1123_date(now)}\r\n"
|
||||
expected << "Server: Apache 2.2.0\r\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue