discourse/spec
Krzysztof Kotlarek 65a3fdbc57
FIX: randomly failing user_spec (#9754)
* FIX: randomly falling user_spec

When we evaluate `update_last_seen!` we relay on Redis to not run that code too often

https://github.com/discourse/discourse/blob/master/app/models/user.rb#L753

The problem is that not all specs which are running `update_last_seen!` are not cleaning after themselves

For examples specs in that block https://github.com/discourse/discourse/blob/master/spec/models/user_spec.rb#L901

So it can be replicated when you run a few times
`bundle exec rspec  ./spec/models/user_spec.rb -e "should not update the first seen value if it doesn't exist" -e "should have 0 for days_visited"`

We should delete Redis key after each spec which is evaluating `update_last_seen!`
2020-05-15 09:24:07 +10:00
..
components PERF: Dematerialize topic_reply_count (#9769) 2020-05-14 15:42:00 -07:00
fabricators FEATURE: Include optimized thumbnails for topics (#9215) 2020-05-05 09:07:50 +01:00
fixtures FEATURE: Include category position when exporting categories (#9658) 2020-05-07 12:17:15 +10:00
helpers DEV: Fix some more flaky tests (#9384) 2020-04-08 12:46:43 +02:00
import_export FEATURE: Rake task to export groups (#9450) 2020-04-17 14:59:54 -07:00
initializers FIX: We need to skip users with associated reviewables when auto-approving (#9080) 2020-03-02 14:33:52 -05:00
integration FEATURE: Allow parameter authentication for UserApiKeys (#9742) 2020-05-12 13:35:36 +01:00
integrity DEV: Adds an integrity spec for JS constants 2020-05-12 12:23:36 -04:00
jobs PERF: Dematerialize topic_reply_count (#9769) 2020-05-14 15:42:00 -07:00
lib FIX: Do not allow null options for bookmark manager 2020-05-08 15:24:59 +00:00
mailers DEV: Add rubocop-rspec (#9288) 2020-03-27 17:35:40 +01:00
models FIX: randomly failing user_spec (#9754) 2020-05-15 09:24:07 +10:00
multisite FIX: Change secure media to encompass attachments as well (#9271) 2020-03-26 07:16:02 +10:00
requests DEV: Allow 3-digit HEX color code in single icon route 2020-05-14 16:37:45 -04:00
script/import_scripts FIX: Change base importer to create new Bookmark records (#9603) 2020-05-01 11:34:55 +10:00
serializers FIX: Change /bookmarks URL back to topic list and add bookmark poster avatars (#9759) 2020-05-13 14:03:24 +10:00
services PERF: Dematerialize topic_reply_count (#9769) 2020-05-14 15:42:00 -07:00
support DEV: Use response.parsed_body in specs (#9615) 2020-05-07 17:04:12 +02:00
tasks FEATURE: Promote bookmarks with reminders to core functionality (#9369) 2020-04-22 13:44:19 +10:00
views/omniauth_callbacks FEATURE: Use full page redirection for all external auth methods (#8092) 2019-10-08 12:10:43 +01:00
rails_helper.rb DEV: Reduce repeated code in discourse_plugin_registry (#9705) 2020-05-13 12:25:34 +01:00
swagger_helper.rb DEV: Add rswag to aid in api documention (#9546) 2020-04-27 16:40:07 -06:00