# RSpec failure about redis

**URL:** <https://meta.discourse.org/t/rspec-failure-about-redis/54860>\
**Category:** Self-hosting\
**Created:** [2016 年 12 月 28 日午前 3:18 UTC](https://meta.discourse.org/t/rspec-failure-about-redis/54860 "2016-12-28T03:18:56Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![woongbinni](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/woongbinni/32/65614_2.png) [@woongbinni](https://meta.discourse.org/u/woongbinni)\
**Post date:** [2016 年 12 月 28 日午前 3:18 UTC](https://meta.discourse.org/t/rspec-failure-about-redis/54860/1 "2016-12-28T03:18:56Z")

</div>

I’ve just run RSPEC and I got 2 failure  
It seems to be redis setting problems, but I have no idea  
Please give me some advice about this.

```plaintext
Failures:

  1) DiscourseRedis DiscourseRedis::FallbackHandler#initiate_fallback_to_master should restrict the number of checks
     Failure/Error: expect(fallback_handler.master).to eq(true)

       expected: true
            got: false

       (compared using ==)
     # ./spec/components/discourse_redis_spec.rb:106:in `block (4 levels) in <top (required)>'

  2) DiscourseRedis DiscourseRedis::Connector should return the master config when master is up
     Failure/Error: client.call([:role])[0]

     Redis::CommandError:
       ERR unknown command 'role'
     # ./lib/discourse_redis.rb:107:in `resolve'
     # ./spec/components/discourse_redis_spec.rb:40:in `block (3 levels) in <top (required)>'

```

---

_[View the full topic](https://meta.discourse.org/t/rspec-failure-about-redis/54860)._
