mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
Use :memory: database to save test time.
This commit is contained in:
parent
eed7e57813
commit
683141da59
1 changed files with 14 additions and 8 deletions
|
|
@ -606,13 +606,19 @@ class TestHTTPCookieJar < Test::Unit::TestCase
|
|||
|
||||
def test_max_cookies_mozillastore
|
||||
gc_threshold = 150
|
||||
Dir.mktmpdir { |dir|
|
||||
h_test_max_cookies(
|
||||
HTTP::CookieJar.new(
|
||||
:store => :mozilla,
|
||||
:gc_threshold => gc_threshold,
|
||||
:filename => File.join(dir, "cookies.sqlite")),
|
||||
HTTP::Cookie::MAX_COOKIES_TOTAL + gc_threshold)
|
||||
}
|
||||
h_test_max_cookies(
|
||||
HTTP::CookieJar.new(
|
||||
:store => :mozilla,
|
||||
:gc_threshold => gc_threshold,
|
||||
:filename => ":memory:"),
|
||||
HTTP::Cookie::MAX_COOKIES_TOTAL + gc_threshold)
|
||||
#Dir.mktmpdir { |dir|
|
||||
# h_test_max_cookies(
|
||||
# HTTP::CookieJar.new(
|
||||
# :store => :mozilla,
|
||||
# :gc_threshold => gc_threshold,
|
||||
# :filename => File.join(dir, "cookies.sqlite")),
|
||||
# HTTP::Cookie::MAX_COOKIES_TOTAL + gc_threshold)
|
||||
#}
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue