mirror of https://github.com/hashicorp/consul
cli: Fix printf format in KV Export Test
Fix vet issue: command/kv_export_test.go:48: arg code for printf verb %s of wrong type: intpull/2613/head^2
parent
2231dd9d1e
commit
19921290c4
|
@ -45,7 +45,7 @@ func TestKVExportCommand_Run(t *testing.T) {
|
||||||
var exported []*kvExportEntry
|
var exported []*kvExportEntry
|
||||||
err := json.Unmarshal([]byte(output), &exported)
|
err := json.Unmarshal([]byte(output), &exported)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("bad: %s", code)
|
t.Fatalf("bad: %d", code)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(exported) != 3 {
|
if len(exported) != 3 {
|
||||||
|
|
Loading…
Reference in New Issue