X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fweb%2Fwebsub%2Fwebsub_controller_test.exs;h=0aa0fdff742ce4c7c5015049621d89ceda215854;hb=66c3813ea6388e9933af2b15e903f1cf6254cd3a;hp=521bbb9aa58214720538ad7cd45ed18333e5cb1d;hpb=1422e7aa84a897c6026e9dcd26b7d5955050687a;p=akkoma diff --git a/test/web/websub/websub_controller_test.exs b/test/web/websub/websub_controller_test.exs index 521bbb9aa..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,6 +41,7 @@ defmodule Pleroma.Web.Websub.WebsubControllerTest do assert response(conn, 200) == "some challenge" assert websub.state == "accepted" + assert_in_delta NaiveDateTime.diff(websub.valid_until, NaiveDateTime.utc_now), 100, 5 end test "handles incoming feed updates", %{conn: conn} do