f1dfd76b98
Fixes one of the 'erratic' tests 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` in the tests to `127.0.0.1` Currently it was set to 8.8.8.8, but I see no reason for that and, while I assume that no calls are made to it, it may come over as weird or suspicious to people. Co-authored-by: Ilja <ilja@ilja.space> Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/233 Co-authored-by: ilja <akkoma.dev@ilja.space> Co-committed-by: ilja <akkoma.dev@ilja.space> |
||
---|---|---|
.. | ||
admin_secret_authentication_plug_test.exs | ||
authentication_plug_test.exs | ||
basic_auth_decoder_plug_test.exs | ||
cache_control_test.exs | ||
cache_test.exs | ||
digest_plug_test.exs | ||
ensure_authenticated_plug_test.exs | ||
ensure_public_or_authenticated_plug_test.exs | ||
ensure_staff_privileged_plug_test.exs | ||
ensure_user_token_assigns_plug_test.exs | ||
federating_plug_test.exs | ||
frontend_static_plug_test.exs | ||
http_security_plug_test.exs | ||
http_signature_plug_test.exs | ||
idempotency_plug_test.exs | ||
instance_static_test.exs | ||
mapped_signature_to_identity_plug_test.exs | ||
o_auth_plug_test.exs | ||
o_auth_scopes_plug_test.exs | ||
plug_helper_test.exs | ||
rate_limiter_test.exs | ||
remote_ip_test.exs | ||
set_format_plug_test.exs | ||
set_locale_plug_test.exs | ||
set_user_session_id_plug_test.exs | ||
uploaded_media_plug_test.exs | ||
user_enabled_plug_test.exs | ||
user_fetcher_plug_test.exs | ||
user_is_admin_plug_test.exs | ||
user_is_staff_plug_test.exs | ||
user_tracking_plug_test.exs |