Fix sporadic test
authorMaxim Filippov <colixer@gmail.com>
Mon, 26 Aug 2019 14:24:22 +0000 (17:24 +0300)
committerMaxim Filippov <colixer@gmail.com>
Mon, 26 Aug 2019 14:24:22 +0000 (17:24 +0300)
test/web/admin_api/admin_api_controller_test.exs

index 1afdb6a506e1d18bbf3df3eb22f2e7d54639a469..4e2c274315d678782e4112d6d8d8c00282b72333 100644 (file)
@@ -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