Unverified Commit 111c1d86 authored by Lars Lehtonen's avatar Lars Lehtonen Committed by GitHub
Browse files

command: fix dropped errors (#14609)

parent 4eb47813
Branches unavailable api/v1.5.0
No related merge requests found
Showing with 6 additions and 0 deletions
+6 -0
......@@ -971,6 +971,9 @@ func TestKVPatchCommand_CAS(t *testing.T) {
}
secret, err := kvClient.Logical().Read("kv/data/foo")
if err != nil {
t.Fatal(err)
}
bar := secret.Data["data"].(map[string]interface{})["bar"]
if bar != tc.expected {
t.Fatalf("expected bar to be %q but it was %q", tc.expected, bar)
......@@ -1041,6 +1044,9 @@ func TestKVPatchCommand_Methods(t *testing.T) {
}
secret, err := kvClient.Logical().Read("kv/data/foo")
if err != nil {
t.Fatal(err)
}
bar := secret.Data["data"].(map[string]interface{})["bar"]
if bar != tc.expected {
t.Fatalf("expected bar to be %q but it was %q", tc.expected, bar)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment