toptal / crystalball

Regression Test Selection library for your RSpec test suite
https://toptal.github.io/crystalball/
MIT License
322 stars 41 forks source link

Fix logger flaky spec #91

Closed jaimerson closed 6 years ago

jaimerson commented 6 years ago

This flaky spec is related to dirty logger configuration. Since the output streams are class instance variables, they need to be reset or they'll carry on to the next examples. It can be reproduced with rspec './spec/logging_spec.rb[1:1]' './spec/rspec/runner_spec.rb[1:2:2:1]' --seed 30990