mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 16:57:06 +08:00
Add the keyspace section of the info command
This commit is contained in:
@@ -52,8 +52,10 @@ func TestInfo(t *testing.T) {
|
||||
asserts.AssertNotError(t, ret)
|
||||
ret = testServer.Exec(c, utils.ToCmdLine("iNFO", "SeRvEr"))
|
||||
asserts.AssertNotError(t, ret)
|
||||
ret = testServer.Exec(c, utils.ToCmdLine("INFO", "Keyspace"))
|
||||
asserts.AssertNotError(t, ret)
|
||||
ret = testServer.Exec(c, utils.ToCmdLine("iNFO", "abc", "bde"))
|
||||
asserts.AssertErrReply(t, ret, "ERR wrong number of arguments for 'info' command")
|
||||
ret = testServer.Exec(c, utils.ToCmdLine("INFO", "abc"))
|
||||
asserts.AssertNullBulk(t, ret)
|
||||
asserts.AssertErrReply(t, ret, "Invalid section for 'info' command")
|
||||
}
|
||||
|
Reference in New Issue
Block a user