diff options
author | Alex S <alex.strizhakov@gmail.com> | 2019-08-02 21:33:12 +0300 |
---|---|---|
committer | Alex S <alex.strizhakov@gmail.com> | 2019-09-05 16:02:20 +0300 |
commit | db690bede92e9ba65b1afaa8605aa5ddb3c992a4 (patch) | |
tree | db31e5bd2ca8ed48d542355e60629fdc2efa5696 /lib/load_testing/helper.ex | |
parent | fe7cf44c405ae2872d8d978f566bbb8e6fba0480 (diff) | |
download | pleroma-db690bede92e9ba65b1afaa8605aa5ddb3c992a4.tar.gz pleroma-db690bede92e9ba65b1afaa8605aa5ddb3c992a4.zip |
temp commit
Diffstat (limited to 'lib/load_testing/helper.ex')
-rw-r--r-- | lib/load_testing/helper.ex | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/load_testing/helper.ex b/lib/load_testing/helper.ex new file mode 100644 index 000000000..338dba323 --- /dev/null +++ b/lib/load_testing/helper.ex @@ -0,0 +1,16 @@ +defmodule Pleroma.LoadTesting.Helper do + defmacro __using__(_) do + quote do + import Ecto.Query + alias Pleroma.Activity + alias Pleroma.Notification + alias Pleroma.Object + alias Pleroma.Repo + alias Pleroma.User + alias Pleroma.Web.ActivityPub + alias Pleroma.Web.CommonAPI + + defp to_sec(microseconds), do: microseconds / 1_000_000 + end + end +end |