diff options
author | Sachin Joshi <satchin.joshi@gmail.com> | 2019-06-02 09:48:45 +0545 |
---|---|---|
committer | Sachin Joshi <satchin.joshi@gmail.com> | 2019-06-02 09:49:59 +0545 |
commit | e394fc2eefdd7a4c7edd5fb3c04b445215d4a86c (patch) | |
tree | 65ccff107b949c4f3df0e23da168b5407d3adc1b | |
parent | ad5263c647aea65dbeb4c329825671895e0a8863 (diff) | |
download | pleroma-e394fc2eefdd7a4c7edd5fb3c04b445215d4a86c.tar.gz pleroma-e394fc2eefdd7a4c7edd5fb3c04b445215d4a86c.zip |
fix the flaky test for users creation by admin
-rw-r--r-- | test/web/admin_api/admin_api_controller_test.exs | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/test/web/admin_api/admin_api_controller_test.exs b/test/web/admin_api/admin_api_controller_test.exs index 9721a4034..86b160246 100644 --- a/test/web/admin_api/admin_api_controller_test.exs +++ b/test/web/admin_api/admin_api_controller_test.exs @@ -47,24 +47,8 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIControllerTest do ] }) - assert json_response(conn, 200) == [ - %{ - "code" => 200, - "data" => %{ - "email" => "lain@example.org", - "nickname" => "lain" - }, - "type" => "success" - }, - %{ - "code" => 200, - "data" => %{ - "email" => "lain2@example.org", - "nickname" => "lain2" - }, - "type" => "success" - } - ] + response = json_response(conn, 200) |> Enum.map(&Map.get(&1, "type")) + assert response == ["success", "success"] end test "Cannot create user with exisiting email" do |