aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-05-10 18:45:55 +0200
committerRoger Braun <roger@rogerbraun.net>2017-05-10 18:45:55 +0200
commit34a1ce00ecc6f19827638fc311e4e76d3c4cb162 (patch)
tree96cdbe8a1987819ebfac9acbbe15747d83ba4d93 /test
parenta2ca3b86053d0f74106bc65fddd7073d12423bbe (diff)
downloadpleroma-34a1ce00ecc6f19827638fc311e4e76d3c4cb162.tar.gz
Set valid_until date.
Diffstat (limited to 'test')
-rw-r--r--test/web/websub/websub_controller_test.exs5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/web/websub/websub_controller_test.exs b/test/web/websub/websub_controller_test.exs
index 8f68248a4..0aa0fdff7 100644
--- a/test/web/websub/websub_controller_test.exs
+++ b/test/web/websub/websub_controller_test.exs
@@ -31,7 +31,7 @@ defmodule Pleroma.Web.Websub.WebsubControllerTest do
"hub.mode" => "subscribe",
"hub.topic" => websub.topic,
"hub.challenge" => "some challenge",
- "hub.lease_seconds" => 100
+ "hub.lease_seconds" => "100"
}
conn = conn
@@ -41,8 +41,7 @@ defmodule Pleroma.Web.Websub.WebsubControllerTest do
assert response(conn, 200) == "some challenge"
assert websub.state == "accepted"
-
- # TODO valid_until
+ assert_in_delta NaiveDateTime.diff(websub.valid_until, NaiveDateTime.utc_now), 100, 5
end
test "handles incoming feed updates", %{conn: conn} do