This is me today… something is leaking state for sure:
RAILS_ENV=test bin/rails c
> Category.all.pluck('id', 'name')
=> [[1, "Uncategorized"], [1044, "Uncategorizedf67a85fac06e11bbea2fed23191e9698"], [523, "Uncategorized6e95aa6bbeec682ec50a5d166496b9f7"]]
Yeah, what’s up with this extra uncategorized? where is it coming from ?
Reading through the code my guess is that somehow SiteSetting.uncategorized_category_id
is getting all messed up between all the redis flushes and multisite shaningens.