tests: remove a useless 1 second sleep

there is no need to wait for the task to finish, it will be deleted
when the transaction is aborted anyway.
This commit is contained in:
rinpatch 2019-12-16 00:51:59 +03:00
parent 814a99c80f
commit 137a3d220b

View file

@ -898,8 +898,6 @@ test "with credentials and valid password", %{conn: conn, user: current_user} do
|> post("/api/pleroma/delete_account", %{"password" => "test"})
assert json_response(conn, 200) == %{"status" => "success"}
# Wait a second for the started task to end
:timer.sleep(1000)
end
end
end