projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add followers endpoint.
[akkoma]
/
test
/
web
/
websub
/
websub_controller_test.exs
diff --git
a/test/web/websub/websub_controller_test.exs
b/test/web/websub/websub_controller_test.exs
index 8f68248a486d2e97ac2aa676f767182ae38f4c74..0aa0fdff742ce4c7c5015049621d89ceda215854 100644
(file)
--- 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.mode" => "subscribe",
"hub.topic" => websub.topic,
"hub.challenge" => "some challenge",
- "hub.lease_seconds" =>
100
+ "hub.lease_seconds" =>
"100"
}
conn = conn
}
conn = conn
@@
-41,8
+41,7
@@
defmodule Pleroma.Web.Websub.WebsubControllerTest do
assert response(conn, 200) == "some challenge"
assert websub.state == "accepted"
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
end
test "handles incoming feed updates", %{conn: conn} do