commit: 3da278375d43de635f8cb45ee1b147765ebb688c
parent 8c7b1c076cafe11a5e75dadc4ef7814fca4344fc
Author: rinpatch <rinpatch@sdf.org>
Date: Mon, 26 Aug 2019 14:44:11 +0000
Merge branch 'fix/sporadic-test' into 'develop'
Fix sporadic test
Closes #1221
See merge request pleroma/pleroma!1602
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/test/web/admin_api/admin_api_controller_test.exs b/test/web/admin_api/admin_api_controller_test.exs
@@ -64,8 +64,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do
log_entry = Repo.one(ModerationLog)
- assert ModerationLog.get_log_entry_message(log_entry) ==
- "@#{admin.nickname} created users: @lain2, @lain"
+ assert ["lain", "lain2"] -- Enum.map(log_entry.data["subjects"], & &1["nickname"]) == []
end
test "Cannot create user with exisiting email" do