From b09f1ab73936c8ce50b00c50ed4884b748e94b66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Thu, 6 Jul 2017 21:09:01 +0200 Subject: [PATCH] Fix a couple of issues reported by go-vet --- config_test.go | 2 +- object_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config_test.go b/config_test.go index f31e73ec..196d4adb 100644 --- a/config_test.go +++ b/config_test.go @@ -62,7 +62,7 @@ var tests = []TestRunner{ t.Errorf("Got LookupBool error: '%v', expected none\n", err) } if !val { - t.Errorf("Got %b from LookupBool, expected 'false'\n", val) + t.Errorf("Got %t from LookupBool, expected 'false'\n", val) } }, // LookupInt32 diff --git a/object_test.go b/object_test.go index 1b188a81..cc082108 100644 --- a/object_test.go +++ b/object_test.go @@ -108,7 +108,7 @@ func TestObjectOwner(t *testing.T) { func checkShortId(t *testing.T, Id, shortId string) { if len(shortId) < 7 || len(shortId) >= len(Id) { - t.Fatal("bad shortId lenght %s", len(shortId)) + t.Fatalf("bad shortId lenght %d", len(shortId)) } if !strings.HasPrefix(Id, shortId) {