mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-11-27 00:03:01 -05:00
fixing latest rubocopz
This commit is contained in:
parent
6e6c7848cc
commit
dce5c22fa0
@ -24,7 +24,7 @@ class HTTPXAwsSigv4Test < Minitest::Test
|
||||
assert_in_delta(amz_date, Time.now.utc, 3)
|
||||
|
||||
# date already set
|
||||
date = Time.now.utc - 60 * 60 * 24
|
||||
date = Time.now.utc - (60 * 60 * 24)
|
||||
date_amz = date.strftime("%Y%m%dT%H%M%SZ")
|
||||
x_date_request = sigv4_session.build_request(:get, "http://domain.com", headers: { "x-amz-date" => date_amz })
|
||||
verify_header(x_date_request.headers, "x-amz-date", date_amz)
|
||||
|
||||
@ -197,7 +197,7 @@ module Requests
|
||||
c3 = HTTPX::Plugins::Cookies::Cookie.new("a", "b", path: "/cookies")
|
||||
assert [c3, c2, c1].sort == [c3, c1, c2]
|
||||
|
||||
c4 = HTTPX::Plugins::Cookies::Cookie.new("a", "b", created_at: (Time.now - 60 * 60 * 24))
|
||||
c4 = HTTPX::Plugins::Cookies::Cookie.new("a", "b", created_at: (Time.now - (60 * 60 * 24)))
|
||||
assert [c4, c3, c2, c1].sort == [c3, c4, c1, c2]
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user