mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-07 01:32:56 +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" {
|
||||
v = 0
|
||||
} 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)
|
||||
if errReply != nil {
|
||||
|
@@ -622,7 +622,7 @@ func TestGetRange_StringExist_StartIdxIncorrectFormat(t *testing.T) {
|
||||
incorrectValue := "incorrect"
|
||||
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user