diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2021-01-28 22:23:10 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2021-01-28 22:23:10 +0400 |
commit | a51d903e0c8c87247df6b3cdecc476269edf58ce (patch) | |
tree | f85f1b8cf7db27d91e2b193bbcd8c57e71800797 /test | |
parent | 13a2ae8ce0f6eb642ef9d6b8fb2cc08e712385c5 (diff) | |
download | pleroma-a51d903e0c8c87247df6b3cdecc476269edf58ce.tar.gz |
Make sure active_user_count/1 counts only local users
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/user_test.exs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/pleroma/user_test.exs b/test/pleroma/user_test.exs index 1fab519f0..ae6fc4c0d 100644 --- a/test/pleroma/user_test.exs +++ b/test/pleroma/user_test.exs @@ -2278,6 +2278,7 @@ defmodule Pleroma.UserTest do test "active_user_count/1" do insert(:user) + insert(:user, %{local: false}) insert(:user, %{last_active_at: Timex.shift(NaiveDateTime.utc_now(), weeks: -5)}) insert(:user, %{last_active_at: Timex.shift(NaiveDateTime.utc_now(), weeks: -3)}) insert(:user, %{last_active_at: NaiveDateTime.utc_now()}) |