akkoma/test
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
..
config Load an emoji.txt specific to the test env 2021-02-03 16:40:59 -06:00
credo/check/consistency Copyright bump for 2022 2022-02-25 23:11:42 -07:00
fixtures Descriptions from exif data with only whitespeces are considered empty 2022-07-01 13:47:23 +02:00
instance_static support for special chars in pack name 2020-09-24 09:12:37 +03:00
mix Rename the Exiftool module 2022-07-01 12:15:02 +02:00
pleroma Fix rate_limiter_test.exs test "it restricts based on config values" 2022-07-09 07:19:18 +02:00
support Format announcements into html 2022-03-08 23:00:51 -05:00
test_helper.exs Copyright bump for 2022 2022-02-25 23:11:42 -07:00