diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-04-05 19:38:44 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-04-05 19:38:44 +0700 |
commit | f1712cd2f1ec6061f70d259f8f5e2b7e9f408d8c (patch) | |
tree | 8b72215d1579dd7be5a5d3f5c5126c36ac26aa2b /test | |
parent | 9c9eec62c2fb67507708dd9e5d3f80a098881a6e (diff) | |
download | pleroma-f1712cd2f1ec6061f70d259f8f5e2b7e9f408d8c.tar.gz |
Use PleromaJobQueue in Pleroma.Web.Push
Diffstat (limited to 'test')
-rw-r--r-- | test/web/push/impl_test.exs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/web/push/impl_test.exs b/test/web/push/impl_test.exs index 3f9f3d809..6bac2c9f6 100644 --- a/test/web/push/impl_test.exs +++ b/test/web/push/impl_test.exs @@ -64,17 +64,19 @@ defmodule Pleroma.Web.Push.ImplTest do } ) - assert Impl.perform_send(notif) == [:ok, :ok] + assert Impl.perform(notif) == [:ok, :ok] end + @tag capture_log: true test "returns error if notif does not match " do - assert Impl.perform_send(%{}) == :error + assert Impl.perform(%{}) == :error end test "successful message sending" do assert Impl.push_message(@message, @sub, @api_key, %Subscription{}) == :ok end + @tag capture_log: true test "fail message sending" do assert Impl.push_message( @message, |