Closed Bug 753042 Opened 12 years ago Closed 11 years ago

fix tests that fail if redis isn't running

Categories

(support.mozilla.org :: Code Quality, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Unassigned)

References

Details

The following apps have tests that fail epically if redis isn't running:

* flagit
* forums
* gallery
* kbforums
* questions
* sumo
* users
* wiki

Seems like these tests all trigger something in the code base that gets fussy if redis isn't around. It'd be nice to run without redis. So maybe if it's not around, it gets mocked? Maybe throw that in as part of the setUp in TestCase?
If I run tests normally, I get:
OK!  1466 tests, 0 failures, 0 errors, 5 skips in 147.5s

If I turn off redis, I get:
OK!  1466 tests, 0 failures, 0 errors, 30 skips in 132.9s

If I comment out the redis settings in settings_local.py and settings_test.py, I get:
OK!  1466 tests, 0 failures, 0 errors, 30 skips in 135.6s

So, I think we fixed it somewhere along the way.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.