All database types must be separate in each ENV

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the testing category.

Last Updated: 2024-03-02

I noticed that my development environment had a bunch of junk keys in redis that were attributable to things I did simultaneously in my test environment.

The solution is to switch to separate databases for everything in the test ENV - even DB's used for minor features.

redis_db = Rails.env.test? ? 2 : 1 'redis://localhost:6379', db: redis_db)