SideEffects: Move streaming of chats to after the transaction.

This commit is contained in:
lain 2020-06-07 14:52:56 +02:00
commit 2cdaac4330
5 changed files with 52 additions and 67 deletions

View file

@ -72,6 +72,7 @@ defmodule Pleroma.Web.CommonAPITest do
assert called(Pleroma.Web.Push.send(notification))
assert called(Pleroma.Web.Streamer.stream(["user", "user:notification"], notification))
assert called(Pleroma.Web.Streamer.stream(["user", "user:pleroma_chat"], :_))
assert activity
end