mac 下安装 redis-3.2.8 执行 sudo make test编译的时候报如下错误
!!! WARNING The following tests failed:
*** [err]: Test replication partial resync: ok psync (diskless: yes, reconnect: 1) in tests/integration/replication-psync.tcl
Expected condition '[s -1 sync_partial_ok] > 0' to be true ([s -1 sync_partial_ok] > 0)
Cleanup: may take some time... OK
make[1]: *** [test] Error 1
make: *** [test] Error 2
解决方法
在 redis-3.2.8 目录下
vi tests/integration/replication-psync.tcl
到代码哪个100的地方,按 i 编辑 修改为500,然后按 :wq 保存退出
test "Test replication partial resync: $descr (diskless: $diskless, reconnect: $reconnect)" {
# Now while the clients are writing data, break the maste-slave
# link multiple times.
if ($reconnect) {