command/kv: remove error case in put and edit error message for delete

This commit is contained in:
Kit Patella 2020-07-20 09:15:25 -07:00
parent f530fe558f
commit 0fe7e987f0
2 changed files with 1 additions and 5 deletions

View File

@ -32,7 +32,7 @@ func TestKVDeleteCommand_Validation(t *testing.T) {
},
"-cas no -modify-index": {
[]string{"-cas", "foo"},
"Must specify -modify-index",
"Cannot delete a key that does not exist",
},
"-modify-index no -cas": {
[]string{"-modify-index", "2", "foo"},

View File

@ -39,10 +39,6 @@ func TestKVPutCommand_Validation(t *testing.T) {
[]string{"-release", "foo"},
"Missing -session",
},
"-cas no -modify-index": {
[]string{"-cas", "foo"},
"Must specify -modify-index",
},
"no key": {
[]string{},
"Missing KEY argument",