mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
test: get to passing on JRuby
- update error message - avoid race condition on cookie expiration
This commit is contained in:
parent
195f5ebb9f
commit
554d38a863
2 changed files with 3 additions and 5 deletions
|
|
@ -50,6 +50,6 @@ end
|
|||
|
||||
def sleep_until(time)
|
||||
if (s = time - Time.now) > 0
|
||||
sleep s
|
||||
sleep s + 0.01
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -10,10 +10,8 @@ module TestHTTPCookieJar
|
|||
end
|
||||
|
||||
def test_nonexistent_store_in_config
|
||||
assert_raise_with_message(
|
||||
ArgumentError,
|
||||
/cookie store unavailable: :nonexistent, error: cannot load .*nonexistent_store/
|
||||
) {
|
||||
expected = /cookie store unavailable: :nonexistent, error: (cannot load|no such file to load) .*nonexistent_store/
|
||||
assert_raise_with_message(ArgumentError, expected) {
|
||||
HTTP::CookieJar.new(store: :nonexistent)
|
||||
}
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue