akkoma/test/pleroma/web
Ilja 6ba93c2cb3 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-02-22 18:56:26 +01:00
..
activity_pub Add tests for mismatched context in replies 2022-02-02 12:19:35 -06:00
admin_api Tag erratic test 2022-02-02 12:29:53 -06: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 tests matching on "warn" 2022-02-02 12:45:26 -06: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 FilterControllerTest: tag erratic test 2022-02-02 13:10:39 -06:00
media_proxy CI: Bump lint stage to elixir-1.12 2021-10-06 08:11:05 +02:00
metadata Test that videos only get image thumbnails in OGP metadata when we can produce them with Preview Proxy 2021-06-09 11:46:31 -05:00
o_auth Fix test get_user_apps/1 2022-02-22 18:56:26 +01:00
o_status Pleroma.Web.base_url() --> Endpoint.url() 2021-12-25 20:11:14 -06:00
pleroma_api Birthdays: hide_birthday -> show_birthday 2022-01-23 09:13:33 +01:00
plugs EnsureStaffPrivilegedPlug: add tests 2021-12-27 10:39:59 -06: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 Escape unicode RTL overrides in rich media parser tests 2022-01-10 17:51:53 +03: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 Max media attachment count 2022-02-06 17:41:15 +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