Fix benchmarks
authorAlex Gleason <alex@alexgleason.me>
Fri, 3 Dec 2021 21:20:54 +0000 (16:20 -0500)
committerAlex Gleason <alex@alexgleason.me>
Fri, 3 Dec 2021 21:20:54 +0000 (16:20 -0500)
benchmarks/load_testing/activities.ex
config/benchmark.exs
mix.exs

index b9f6b24da5a5cd79f43ef0e4a416e31e12c1e7d1..7f262d228cc9ebf8a5222df45446702b8342e855 100644 (file)
@@ -394,7 +394,7 @@ defmodule Pleroma.LoadTesting.Activities do
 
   defp other_data(actor, content) do
     %{host: host} = URI.parse(actor.ap_id)
-    datetime = DateTime.utc_now()
+    datetime = DateTime.utc_now() |> to_string()
     context_id = "https://#{host}/contexts/#{UUID.generate()}"
     activity_id = "https://#{host}/activities/#{UUID.generate()}"
     object_id = "https://#{host}/objects/#{UUID.generate()}"
index a4d048f1bb0a91dc89daeb5812a73ffe456f23b7..9a7ea566915bbe336e3e9685c6c8c8e21aebb3f5 100644 (file)
@@ -4,8 +4,7 @@ import Config
 # you can enable the server option below.
 config :pleroma, Pleroma.Web.Endpoint,
   http: [port: 4001],
-  url: [port: 4001],
-  server: true
+  url: [port: 4001]
 
 # Disable captha for tests
 config :pleroma, Pleroma.Captcha,
@@ -44,7 +43,7 @@ config :pleroma, Pleroma.Repo,
   pool_size: 10
 
 # Reduce hash rounds for testing
-config :pbkdf2_elixir, rounds: 1
+config :pleroma, :password, iterations: 1
 
 config :tesla, adapter: Tesla.Mock
 
diff --git a/mix.exs b/mix.exs
index 39c79c83b9b00282185944dab7fae8d96a90240b..c7987005afe9dc435e41c2c7d4645eb4e6922a71 100644 (file)
--- a/mix.exs
+++ b/mix.exs
@@ -86,7 +86,7 @@ defmodule Pleroma.Mixfile do
   end
 
   # Specifies which paths to compile per environment.
-  defp elixirc_paths(:benchmark), do: ["lib", "benchmarks"]
+  defp elixirc_paths(:benchmark), do: ["lib", "benchmarks", "priv/scrubbers"]
   defp elixirc_paths(:test), do: ["lib", "test/support"]
   defp elixirc_paths(_), do: ["lib"]