]> cat aescling's git repositories - mastodon.git/commit
Fix issue with intermittent api/v1/notifications failure (#1606)
authorMatt Jankowski <mjankowski@thoughtbot.com>
Wed, 12 Apr 2017 13:53:55 +0000 (09:53 -0400)
committerEugen <eugen@zeonfederated.com>
Wed, 12 Apr 2017 13:53:54 +0000 (15:53 +0200)
commitb155e6ccf55bbd0e2b07d6e06349849dd1f06f0a
tree25a441316b5056a0d13d2bc06ebcda31347dc809
parentf16b9a49289b801c309ba3602772cd8f03c0dffa
Fix issue with intermittent api/v1/notifications failure (#1606)

The spec was checking the activity_id of the activities held in notifications
within the controller.

Because the activities are different models, it is possible that they are
created with the same database IDs, and when they are this spec fails because an
activity which should not count as a match is counted as one.
spec/controllers/api/v1/notifications_controller_spec.rb