akkoma/test/pleroma/web
ilja f1dfd76b98
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
Fix rate_limiter_test.exs test "it restricts based on config values" (#233)
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: #233
Co-authored-by: ilja <akkoma.dev@ilja.space>
Co-committed-by: ilja <akkoma.dev@ilja.space>
2022-11-01 14:25:54 +00:00
..
activity_pub Unilateral remove from followers (#232) 2022-10-19 10:01:14 +00:00
admin_api purge chat and shout endpoints 2022-07-21 11:29:28 +01:00
akkoma_api Backend settings sync (#226) 2022-10-06 16:22:15 +00:00
api_spec Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
auth Create WrapperAuthenticator and simplify Authenticator behaviour 2021-06-07 18:18:39 -05:00
common_api make conversation-id deterministic (#154) 2022-08-06 20:59:15 +00:00
feed UserController: fall back to frontend when user isn't found 2021-08-17 18:32:32 -05:00
mastodon_api Unilateral remove from followers (#232) 2022-10-19 10:01:14 +00:00
media_proxy Use uppercase HTTP HEAD method for media preview proxy request (#128) 2022-07-30 21:58:14 +00:00
metadata Metadata/Utils: use summary as description if set 2022-09-11 19:55:38 +01:00
o_auth Fix tests in ldap registration 2022-11-01 14:21:35 +00:00
o_status Pleroma.Web.base_url() --> Endpoint.url() 2021-12-25 20:11:14 -06:00
pleroma_api Make backups require its own scope (#218) 2022-09-19 17:31:35 +00:00
plugs Fix rate_limiter_test.exs test "it restricts based on config values" (#233) 2022-11-01 14:25:54 +00:00
preload/providers Remove precompiled javascript (#55) 2022-07-08 13:03:18 +00:00
push purge chat and shout endpoints 2022-07-21 11:29:28 +01:00
rich_media make search provider configurable 2021-12-12 17:35:35 +00:00
static_fe Pipeline Ingestion: Note 2021-04-05 19:19:11 +02:00
twitter_api Remote interaction with posts (#198) 2022-09-08 10:19:22 +00:00
views Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
web_finger Support reaching user@sub.domain.tld at user@domain.tld (#134) 2022-08-02 13:54:22 +00:00
common_api_test.exs Post editing (#202) 2022-09-06 19:24:02 +00:00
fallback_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
federator_test.exs fix tests 2022-08-11 19:21:43 +01:00
gettext_test.exs Fix incorrect fallback when English is set to first language 2022-06-29 20:47:10 +01:00
manifest_controller_test.exs Expose /manifest.json for PWA 2021-11-24 17:50:55 -06:00
masto_fe_controller_test.exs API compatibility with fedibird, frontend config (#163) 2022-08-17 00:22:59 +00:00
media_proxy_test.exs Merge remote-tracking branch 'pleroma/develop' into cycles-base-url 2021-05-31 16:49:46 -05:00
mongoose_im_controller_test.exs Change user.deactivated field to user.is_active 2021-01-15 11:24:46 -06:00
node_info_test.exs expose bubble instances via nodeinfo (#136) 2022-08-02 09:11:22 +00:00
rel_me_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
streamer_test.exs Post editing (#202) 2022-09-06 19:24:02 +00:00
uploader_controller_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
web_finger_test.exs Support reaching user@sub.domain.tld at user@domain.tld (#134) 2022-08-02 13:54:22 +00:00