summaryrefslogtreecommitdiff
path: root/dev-lang/crystal/files/crystal-0.27.0-max-age-0-test.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-12-24 14:11:38 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-12-24 14:11:38 +0000
commitde49812990871e1705b64051c35161d5e6400269 (patch)
tree5e1e8fcb0ff4579dbd22a1bfee28a6b97dc8aaeb /dev-lang/crystal/files/crystal-0.27.0-max-age-0-test.patch
parent536c3711867ec947c1738f2c4b96f22e4863322d (diff)
gentoo resync : 24.12.2018
Diffstat (limited to 'dev-lang/crystal/files/crystal-0.27.0-max-age-0-test.patch')
-rw-r--r--dev-lang/crystal/files/crystal-0.27.0-max-age-0-test.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-lang/crystal/files/crystal-0.27.0-max-age-0-test.patch b/dev-lang/crystal/files/crystal-0.27.0-max-age-0-test.patch
new file mode 100644
index 000000000000..d78927ab3eef
--- /dev/null
+++ b/dev-lang/crystal/files/crystal-0.27.0-max-age-0-test.patch
@@ -0,0 +1,14 @@
+--- a/spec/std/http/cookie_spec.cr
++++ b/spec/std/http/cookie_spec.cr
+@@ -150,7 +150,10 @@ module HTTP
+ parse_set_cookie("a=1; domain=127.0.0.1; path=/; HttpOnly").domain.should eq "127.0.0.1"
+ end
+
+- it "parse max-age as seconds from Time.now" do
++ # unstable test: sometimes 'now - max-age=0' == 0.0:
++ # Failure/Error: delta.should be > 0.seconds
++ # Expected 00:00:00 to be > 00:00:00
++ pending "parse max-age as seconds from Time.now" do
+ cookie = parse_set_cookie("a=1; max-age=10")
+ delta = cookie.expires.not_nil! - Time.now
+ delta.should be > 9.seconds