Skip to content
代码片段 群组 项目
  • Stan Hu's avatar
    ff606943
    Fix order-dependent test failures in Redis/Sidekiq specs · ff606943
    Stan Hu 创作于
    Previously the second test would fail if you did this:
    
    ```
    bundle exec rspec spec/lib/gitlab/redis/queues_spec.rb \
      spec/lib/gitlab/sidekiq_queue_spec.rb
    ```
    
    This happens because the `@instances` class variable is memoized
    by the first spec with some temporary settings. Clear this out
    to ensure this doesn't pollute the global state.
    ff606943
    历史
    Fix order-dependent test failures in Redis/Sidekiq specs
    Stan Hu 创作于
    Previously the second test would fail if you did this:
    
    ```
    bundle exec rspec spec/lib/gitlab/redis/queues_spec.rb \
      spec/lib/gitlab/sidekiq_queue_spec.rb
    ```
    
    This happens because the `@instances` class variable is memoized
    by the first spec with some temporary settings. Clear this out
    to ensure this doesn't pollute the global state.
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。