mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-11 11:40:18 +08:00
Add info command (#145)
* Generate a new runid for each start of godis * Add info command * Add info command * Generate a new runid for each start of godis * Add unittests for the info command * Add info command * Record the number of clients in the current Godis server * Add info command
This commit is contained in:
@@ -46,6 +46,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", "client"))
|
||||
asserts.AssertNotError(t, ret)
|
||||
ret = testServer.Exec(c, utils.ToCmdLine("INFO", "cluster"))
|
||||
asserts.AssertNotError(t, ret)
|
||||
ret = testServer.Exec(c, utils.ToCmdLine("iNFO", "SeRvEr"))
|
||||
asserts.AssertNotError(t, ret)
|
||||
ret = testServer.Exec(c, utils.ToCmdLine("iNFO", "abc", "bde"))
|
||||
|
Reference in New Issue
Block a user