spc-pleroma/test/pleroma/web
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_pub Merge branch 'bugfix/mime-validation-no-list' into 'develop' 2022-07-03 21:04:41 +00:00
admin_api Merge branch 'from/upstream-develop/tusooa/server-announcements' into 'develop' 2022-07-03 20:58:20 +00:00
api_spec Copyright bump for 2022 2022-02-25 23:11:42 -07:00
auth Copyright bump for 2022 2022-02-25 23:11:42 -07:00
common_api Copyright bump for 2022 2022-02-25 23:11:42 -07:00
endpoint Copyright bump for 2022 2022-02-25 23:11:42 -07:00
feed Copyright bump for 2022 2022-02-25 23:11:42 -07:00
mastodon_api Merge branch 'from/upstream-develop/tusooa/server-announcements' into 'develop' 2022-07-03 20:58:20 +00:00
media_proxy Copyright bump for 2022 2022-02-25 23:11:42 -07:00
metadata Copyright bump for 2022 2022-02-25 23:11:42 -07:00
o_auth Merge branch 'fix_test_get_user_apps' into 'develop' 2022-03-06 18:40:49 +00:00
o_status Copyright bump for 2022 2022-02-25 23:11:42 -07:00
pleroma_api Copyright bump for 2022 2022-02-25 23:11:42 -07:00
plugs Fix rate_limiter_test.exs test "it restricts based on config values" 2022-07-09 07:19:18 +02:00
preload/providers Copyright bump for 2022 2022-02-25 23:11:42 -07:00
push Copyright bump for 2022 2022-02-25 23:11:42 -07:00
rich_media Copyright bump for 2022 2022-02-25 23:11:42 -07:00
static_fe Copyright bump for 2022 2022-02-25 23:11:42 -07:00
twitter_api Copyright bump for 2022 2022-02-25 23:11:42 -07:00
views Copyright bump for 2022 2022-02-25 23:11:42 -07:00
web_finger Copyright bump for 2022 2022-02-25 23:11:42 -07:00
common_api_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
fallback_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
federator_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
gettext_test.exs Fix incorrect fallback when English is set to first language 2022-04-17 22:39:52 -04:00
manifest_controller_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
media_proxy_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
mongoose_im_controller_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
node_info_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
rel_me_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
shout_channel_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
streamer_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
uploader_controller_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00
web_finger_test.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00