aboutsummaryrefslogtreecommitdiff
path: root/test/web
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-04-22 13:28:34 +0200
committerlain <lain@soykaf.club>2020-04-22 13:28:34 +0200
commitf719a5b23a9bec4ed94f36c07e24aa1413654bae (patch)
tree1036f30a884cd964b696718891954c0f63950f65 /test/web
parent3c828016d9d1ecb1ebcebb00aaadec2ace37f807 (diff)
downloadpleroma-f719a5b23a9bec4ed94f36c07e24aa1413654bae.tar.gz
WebPush: Return proper values for jobs.
Diffstat (limited to 'test/web')
-rw-r--r--test/web/push/impl_test.exs4
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