Fix redis test

This commit is contained in:
Sammy Libre 2016-08-07 06:45:52 +05:00
parent 8fe7ce8a9d
commit 60d9227304

View File

@ -60,7 +60,7 @@ func TestWriteBlockAtSameHeight(t *testing.T) {
} }
func stripTimestampFromZ(z redis.Z) redis.Z { func stripTimestampFromZ(z redis.Z) redis.Z {
k := strings.Split(z.Member, ":") k := strings.Split(z.Member.(string), ":")
res := []string{k[0], "*", k[2], k[3]} res := []string{k[0], "*", k[2], k[3]}
return redis.Z{Score: z.Score, Member: strings.Join(res, ":")} return redis.Z{Score: z.Score, Member: strings.Join(res, ":")}
} }