mongooseim test: explicitly set password for the deactivated used
authorfence <fence@desu-mail.moe>
Mon, 27 Apr 2020 17:32:58 +0000 (19:32 +0200)
committerfence <fence@desu-mail.moe>
Mon, 27 Apr 2020 17:32:58 +0000 (19:32 +0200)
test/web/mongooseim/mongoose_im_controller_test.exs

index 2b4d124afbf375ac07c757a797e9109c5ee50a95..d17f8dbb4c55f2f20a1dc93892c595bc1ee2a3c4 100644 (file)
@@ -42,7 +42,7 @@ defmodule Pleroma.Web.MongooseIMController do
 
   test "/check_password", %{conn: conn} do
     user = insert(:user, password_hash: Comeonin.Pbkdf2.hashpwsalt("cool"))
-    _deactivated_user = insert(:user, nickname: "konata", deactivated: true)
+    _deactivated_user = insert(:user, nickname: "konata", deactivated: true, password_hash: Comeonin.Pbkdf2.hashpwsalt("cool"))
 
     res =
       conn