akkoma/test/pleroma
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 Merge remote-tracking branch 'remotes/origin/develop' into feature/object-hashtags-rework 2021-01-13 22:11:16 +03:00
chat Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
config Skip erratic tests 2021-12-21 22:04:15 -06:00
conversation Add API endpoint to remove a conversation 2021-02-15 21:48:13 +04:00
docs Selecting MRF policies didn't work as intended any more 2021-08-28 18:27:58 +02:00
ecto_type/activity_pub/object_validators Pipeline Ingestion: Note 2021-04-05 19:19:11 +02:00
emails CI: Bump lint stage to elixir-1.12 2021-10-06 08:11:05 +02:00
emoji Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
gun ConnectionPoolTest: tag erratic test 2021-12-27 11:27:25 -06:00
http request_builder_test: mode :read got removed 2021-06-03 19:11:17 +02:00
instances Add Instance.delete_users_and_activities/1 to delete all content from a remote instance 2021-07-17 14:06:35 -05:00
integration Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
mfa Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
migration_helper Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
object fetcher_test: Remove assert on fake Create having an ap_id 2021-04-05 19:19:12 +02:00
password Pbkdf2: Use it everywhere. 2021-01-14 15:06:16 +01:00
repo/migrations Forgot to move migration test when rebasing 2021-06-01 11:49:47 -05:00
upload Blurhash varies slightly by computer generating it, so just validate it wasn't nil 2021-06-08 14:53:03 -05:00
uploaders Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
user v2 Suggestions: rudimentary API response 2021-11-26 14:34:10 -06:00
web Fix test get_user_apps/1 2022-06-29 20:43:41 +01:00
workers Merge branch 'develop' into 'fix/2412-filters' 2021-02-03 14:23:23 +00:00
activity_test.exs Merge branch 'features/validators-note' into 'develop' 2021-06-01 01:51:38 +00:00
application_requirements_test.exs Don't crash when email settings are invalid 2021-05-03 14:43:14 -05:00
bookmark_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
captcha_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
chat_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
config_db_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
config_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
conversation_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
emoji_test.exs Add unicode 14 support 2022-06-29 20:43:41 +01:00
filter_test.exs support for expires_in/expires_at in filters 2021-01-26 08:27:45 +03:00
following_relationship_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
formatter_test.exs CI: Bump lint stage to elixir-1.12 2021-10-06 08:11:05 +02:00
frontend_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
hashtag_test.exs [#3213] Ignoring of blank elements from objects.data->tag. 2021-01-21 20:50:06 +03:00
healthcheck_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
html_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
http_test.exs mix format 2022-06-11 16:14:31 +01:00
instances_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
job_queue_monitor_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
keys_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
list_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
marker_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
mfa_test.exs Pbkdf2: Use it everywhere. 2021-01-14 15:06:16 +01:00
moderation_log_test.exs CI: Bump lint stage to elixir-1.12 2021-10-06 08:11:05 +02:00
notification_test.exs Merge remote-tracking branch 'pleroma/develop' into poll-notification-fixes 2021-07-18 11:49:22 -05:00
object_test.exs Merge remote-tracking branch 'remotes/origin/develop' into feature/object-hashtags-rework 2021-01-21 20:20:35 +03:00
otp_version_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
pagination_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
registration_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
repo_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
report_note_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
reverse_proxy_test.exs fix all tests 2022-06-11 16:14:22 +01:00
runtime_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
safe_jsonb_set_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
scheduled_activity_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
signature_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
stats_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
upload_test.exs Merge branch 'deprecate-public_endpoint' into 'develop' 2021-01-20 22:48:48 +00:00
user_invite_token_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
user_relationship_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
user_search_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
user_test.exs Revert "Merge branch 'remove/mastofe' into 'develop'" 2022-01-08 21:44:37 +00:00
utils_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
xml_builder_test.exs Bump Copyright to 2021 2021-01-13 07:49:50 +01:00