diff options
author | lain <lain@soykaf.club> | 2020-04-22 13:28:34 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-04-22 13:28:34 +0200 |
commit | f719a5b23a9bec4ed94f36c07e24aa1413654bae (patch) | |
tree | 1036f30a884cd964b696718891954c0f63950f65 /test/web/push | |
parent | 3c828016d9d1ecb1ebcebb00aaadec2ace37f807 (diff) | |
download | pleroma-f719a5b23a9bec4ed94f36c07e24aa1413654bae.tar.gz |
WebPush: Return proper values for jobs.
Diffstat (limited to 'test/web/push')
-rw-r--r-- | test/web/push/impl_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/push/impl_test.exs b/test/web/push/impl_test.exs index 9121d90e7..b2664bf28 100644 --- a/test/web/push/impl_test.exs +++ b/test/web/push/impl_test.exs @@ -63,12 +63,12 @@ defmodule Pleroma.Web.Push.ImplTest do activity: activity ) - assert Impl.perform(notif) == [:ok, :ok] + assert Impl.perform(notif) == {:ok, [:ok, :ok]} end @tag capture_log: true test "returns error if notif does not match " do - assert Impl.perform(%{}) == :error + assert Impl.perform(%{}) == {:error, :unknown_type} end test "successful message sending" do |