Guys,
I noticed that we have Rails Cache enabled for test environment:
config/environments/test.rb
61: config.cache_store = :file_store, Rails.root.join("tmp", "cache", "paralleltests#{ENV['TEST_ENV_NUMBER']}")
Since minitest executes tests in random order, this can be root cause of some random failures. Last couple of days, we have quite regular:
unexpected invocation: #<AnyInstance:SmartProxy(id: integer, name: string, url: string, created_at: datetime, updated_at: datetime, expired_logs: string)>.statuses()
This is I believe because of the cache which is being used to cache SmartProxy status response. I am going to experiment with disabling Rais cache completely by setting it to:
config.cache_store = :null_store
I expect some tests to fail, particularly around testing cache itself. We need to stub these, then we should be in better shape I hope.