abronan / libkv

Key/Value Store Abstraction Library written in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to run testAtomicPutWithSlashSuffixKey testing

bailantaotao opened this issue · comments

hi,

I executes the testAtomicPutWithSlashSuffixKey testing in REDIS and get errors:"Previous K/V pair exists, cannot complete Atomic operation"

The full message as below:

go test -v github.com/docker/libkv/store/redis -run ^TestRedisStore$
	Error Trace:	utils.go:293
			utils.go:33
			redis_test.go:47
	Error:		Expected nil, but got: &errors.errorString{s:"Previous K/V pair exists, cannot complete Atomic operation"}
		
	Error Trace:	utils.go:294
			utils.go:33
			redis_test.go:47
	Error:		Should be true
		
exit status 1
FAIL	github.com/docker/libkv/store/redis	0.036s

but the key testAtomicPutWithSlashSuffixKey/key/ is not found in REDIS.

127.0.0.1:6379> get testAtomicPutWithSlashSuffixKey/key/
(nil)

Do you have any comments?

golang: 1.9
branch: master
REDIS version: 4.0.2
docker (client and server): 17.09.1-ce