command/kv: remove error case in put and edit error message for delete
This commit is contained in:
parent
369a92c71f
commit
b47fcf7282
|
@ -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"},
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue