bugfix: execCommand

This commit is contained in:
finley
2023-05-20 16:13:06 +08:00
parent edfbe75dfd
commit c7dda00118
3 changed files with 16 additions and 18 deletions

View File

@@ -16,5 +16,5 @@ func TestCommandInfo(t *testing.T) {
ret = testServer.Exec(c, utils.ToCmdLine("command", "getkeys", "mset", "a", "a", "b", "b"))
asserts.AssertMultiBulkReply(t, ret, []string{"a", "b"})
ret = testServer.Exec(c, utils.ToCmdLine("command", "foobar"))
asserts.AssertErrReply(t, ret, "Unknown subcommand or wrong number of arguments for 'foobar'")
asserts.AssertErrReply(t, ret, "Unknown subcommand 'foobar'")
}