mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-08 02:01:07 +08:00
fix test suite
This commit is contained in:
@@ -575,7 +575,7 @@ func execSetBit(db *DB, args [][]byte) redis.Reply {
|
|||||||
} else if valStr == "0" {
|
} else if valStr == "0" {
|
||||||
v = 0
|
v = 0
|
||||||
} else {
|
} else {
|
||||||
return protocol.MakeErrReply("ERR bit is not an integer or out of range\n")
|
return protocol.MakeErrReply("ERR bit is not an integer or out of range")
|
||||||
}
|
}
|
||||||
bs, errReply := db.getAsString(key)
|
bs, errReply := db.getAsString(key)
|
||||||
if errReply != nil {
|
if errReply != nil {
|
||||||
|
@@ -622,7 +622,7 @@ func TestGetRange_StringExist_StartIdxIncorrectFormat(t *testing.T) {
|
|||||||
incorrectValue := "incorrect"
|
incorrectValue := "incorrect"
|
||||||
|
|
||||||
actual := testDB.Exec(nil, utils.ToCmdLine("GetRange", key, incorrectValue, fmt.Sprint(0)))
|
actual := testDB.Exec(nil, utils.ToCmdLine("GetRange", key, incorrectValue, fmt.Sprint(0)))
|
||||||
asserts.AssertErrReply(t, actual, "-ERR value is not an integer or out of range")
|
asserts.AssertErrReply(t, actual, "ERR value is not an integer or out of range")
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestGetRange_StringExist_EndIdxIncorrectFormat(t *testing.T) {
|
func TestGetRange_StringExist_EndIdxIncorrectFormat(t *testing.T) {
|
||||||
|
Reference in New Issue
Block a user