akkoma/test/pleroma/web
Ilja 8b843be03e Fix test get_user_apps/1
For some reason I had a test who suddenly failed, mix test test/pleroma/web/o_auth/app_test.exs:54. A user has a list of applications and this test adds them and then sees if the list it gets back is the same as the apps it added.

When I ran mix test a day before I didn't have this problem and when I pushed code today in a different MR, the pipeline succeeded (see https://git.pleroma.social/ilja/pleroma/-/jobs/205827), yet locally it failed. So it seems the test can sometimes succeed and sometimes fail, which makes it untrustworthy.

The failure I see is because the returned list is in reverse order. I assume that's not per sé wrong. You just want to know if the apps you added are actually there. I fixed the test by first ordering the lists before comparing.

AFAICT (and as far as that's relevant) the test got introduced in commit cb2a072e62
2022-06-29 20:43:41 +01:00
..
activity_pub mix format 2022-06-22 17:20:55 +01:00
admin_api fix all tests 2022-06-11 16:14:22 +01: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 fix all tests 2022-06-11 16:14:22 +01:00
endpoint Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
feed UserController: fall back to frontend when user isn't found 2021-08-17 18:32:32 -05:00
mastodon_api Add visibility check in context path (#26) 2022-06-29 09:33:57 +00:00
media_proxy CI: Bump lint stage to elixir-1.12 2021-10-06 08:11:05 +02:00
metadata fix secret key failure 2022-06-11 16:48:04 +01:00
o_auth Fix test get_user_apps/1 2022-06-29 20:43:41 +01:00
o_status Pleroma.Web.base_url() --> Endpoint.url() 2021-12-25 20:11:14 -06:00
pleroma_api Bugfix: standardise scheme for emoji reactions 2022-06-25 15:27:46 +01:00
plugs cherry-pick security from upstream 2022-06-22 16:25:05 +01:00
preload/providers Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
push Bump Copyright to 2021 2021-01-13 07:49:50 +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 Merge branch 'delete-account-fix' into 'develop' 2021-12-15 21:26:45 +00:00
views Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
web_finger CI: Bump lint stage to elixir-1.12 2021-10-06 08:11:05 +02:00
common_api_test.exs ensure tests pass 2022-06-14 16:24:03 +01:00
fallback_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
federator_test.exs Pipeline Ingestion: Note 2021-04-05 19:19:11 +02:00
manifest_controller_test.exs Expose /manifest.json for PWA 2021-11-24 17:50:55 -06: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 quarantine instances info 2021-08-06 07:59:53 +02:00
rel_me_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
shout_channel_test.exs Channel name was incorrect. We left it as chat:public for backwards compatibility. 2021-06-07 16:10:24 -05:00
streamer_test.exs StreamerTest: tag erratic test 2021-12-31 10:29:50 -06:00
uploader_controller_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
web_finger_test.exs Merge remote-tracking branch 'pleroma/develop' into cycles-base-url 2021-05-31 16:49:46 -05:00