Commit cef7f302 authored by Wandenberg Peixoto's avatar Wandenberg Peixoto

fix time format on If-Modified-Since test

parent 31c5d1b6
require File.expand_path('base_test_case', File.dirname(__FILE__)) require File.expand_path('base_test_case', File.dirname(__FILE__))
class TestPublisher < Test::Unit::TestCase class TestSubscriber < Test::Unit::TestCase
include BaseTestCase include BaseTestCase
def config_test_accepted_methods def config_test_accepted_methods
...@@ -506,7 +506,7 @@ class TestPublisher < Test::Unit::TestCase ...@@ -506,7 +506,7 @@ class TestPublisher < Test::Unit::TestCase
t = Time.now t = Time.now
t = t - 20 t = t - 20
headers = headers.merge({'If-Modified-Since' => t.utc.strftime("%a, %e %b %Y %T %Z")}) headers = headers.merge({'If-Modified-Since' => t.utc.strftime("%a, %d %b %Y %T %Z")})
response = "" response = ""
EventMachine.run { EventMachine.run {
...@@ -573,7 +573,7 @@ class TestPublisher < Test::Unit::TestCase ...@@ -573,7 +573,7 @@ class TestPublisher < Test::Unit::TestCase
t = Time.now t = Time.now
t = t - 20 t = t - 20
headers = headers.merge({'If-Modified-Since' => t.utc.strftime("%a, %e %b %Y %T %Z")}) headers = headers.merge({'If-Modified-Since' => t.utc.strftime("%a, %d %b %Y %T %Z")})
response = "" response = ""
EventMachine.run { EventMachine.run {
...@@ -892,5 +892,4 @@ class TestPublisher < Test::Unit::TestCase ...@@ -892,5 +892,4 @@ class TestPublisher < Test::Unit::TestCase
add_test_timeout add_test_timeout
} }
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment