akkoma/test/pleroma
Ilja 26080b4b5c Fix rate_limiter_test.exs test "it restricts based on config values"
It used a timer to sleep.
But time also goes on when doing other things, so depending on hardware, the timings could be off.
I slightly changed the tests so we still test what we functionally want.
Instead of waiting until the cache expires I now have a function to expire the test and use that.

That means we're not testing any more if the cache really expires after a certain amount of time,
but that's the responsability of the dependency imo, so shouldn't be a problem.

I also changed `Pleroma.Web.Endpoint, :http, :ip` to `127.0.0.1` because that's the setting people typically have,
and I see no reason to do it differently.
Especially since it's an exernal ip, which may come over as weird or suspicious to people.
2022-07-09 07:19:18 +02:00
..
activity Copyright bump for 2022 2022-02-25 23:11:42 -07:00
bbs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
chat Copyright bump for 2022 2022-02-25 23:11:42 -07:00
config Better way of getting keys 2022-07-01 12:15:02 +02:00
conversation Copyright bump for 2022 2022-02-25 23:11:42 -07:00
docs Add tlsv1.3 to suggestions 2022-05-31 00:51:48 +02:00
ecto_type/activity_pub/object_validators Copyright bump for 2022 2022-02-25 23:11:42 -07:00
emails Merge branch 'from/upstream-develop/tusooa/translate-pages' into 'develop' 2022-03-20 18:14:37 +00:00
emoji Copyright bump for 2022 2022-02-25 23:11:42 -07:00
gun Copyright bump for 2022 2022-02-25 23:11:42 -07:00
http Copyright bump for 2022 2022-02-25 23:11:42 -07:00
instances Copyright bump for 2022 2022-02-25 23:11:42 -07:00
integration Copyright bump for 2022 2022-02-25 23:11:42 -07:00
mfa Copyright bump for 2022 2022-02-25 23:11:42 -07:00
migration_helper Copyright bump for 2022 2022-02-25 23:11:42 -07:00
object Copyright bump for 2022 2022-02-25 23:11:42 -07:00
password Copyright bump for 2022 2022-02-25 23:11:42 -07:00
repo/migrations Copyright bump for 2022 2022-02-25 23:11:42 -07:00
upload Descriptions from exif data with only whitespeces are considered empty 2022-07-01 13:47:23 +02:00
uploaders Copyright bump for 2022 2022-02-25 23:11:42 -07:00
user Copyright bump for 2022 2022-02-25 23:11:42 -07:00
web Fix rate_limiter_test.exs test "it restricts based on config values" 2022-07-09 07:19:18 +02:00
workers Copyright bump for 2022 2022-02-25 23:11:42 -07:00
activity_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
announcement_read_relationship_test.exs Implement announcement read relationships 2022-03-08 13:09:49 -05:00
announcement_test.exs Format announcements into html 2022-03-08 23:00:51 -05:00
application_requirements_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
bookmark_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
captcha_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
chat_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
config_db_test.exs Add tlsv1.3 to suggestions 2022-05-31 00:51:48 +02:00
config_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
conversation_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
emoji_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
filter_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
following_relationship_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
formatter_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
frontend_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
hashtag_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
healthcheck_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
html_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
http_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
instances_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
job_queue_monitor_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
keys_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
list_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
marker_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
mfa_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
moderation_log_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
notification_test.exs Merge branch 'delete_report_notifs_when_demoting_from_superuser' into 'develop' 2022-03-20 18:13:19 +00:00
object_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
otp_version_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
pagination_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
registration_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
repo_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
report_note_test.exs Fix long report notes giving errors on creation 2022-06-02 01:28:39 -04:00
reverse_proxy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
runtime_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
safe_jsonb_set_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
scheduled_activity_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
signature_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
stats_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
upload_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
user_invite_token_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
user_relationship_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
user_search_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
user_test.exs Merge branch 'delete_report_notifs_when_demoting_from_superuser' into 'develop' 2022-03-20 18:13:19 +00:00
utils_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
xml_builder_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00