ruby-on-rails – Redis :: CommandError:运行rspec时ERR值为无
发布时间:2020-12-16 19:45:16 所属栏目:百科 来源:网络整理
导读:我刚刚开始使用现有的Rails代码库,我试图在代码库中运行测试.但是,当我运行bundle exec rspec spec /我在每个测试中都会收到以下错误: Failure/Error: Unable to find matching line from backtraceRedis::CommandError: ERR invalid DB index # ./lib/redi
我刚刚开始使用现有的Rails代码库,我试图在代码库中运行测试.但是,当我运行bundle exec rspec spec /我在每个测试中都会收到以下错误:
Failure/Error: Unable to find matching line from backtrace Redis::CommandError: ERR invalid DB index # ./lib/redised.rb:35:in `flushdb_all' # ./lib/redised.rb:35:in `each_value' # ./lib/redised.rb:35:in `flushdb_all' 我很新的轨道 – 我只完成了Michael Hartl的rails教程中的11个章节中的8个,所以我不太熟悉Redis.我的Redis版本是redis-2.4.17. 解决方法
问题是我需要增加数据库的数量.为此,我去了/usr/local / etc并修改了redis.conf.我将数据库号设置为128:数据库128.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |