From 119ba7a44987554a923810cc936393cf1aa6f990 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 13 Jan 2018 10:08:02 -0600 Subject: [PATCH] Fix go vet issues --- batch_test.go | 4 ++-- examples/chat/main.go | 3 +-- query_test.go | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/batch_test.go b/batch_test.go index 54785f79..61bbe357 100644 --- a/batch_test.go +++ b/batch_test.go @@ -518,7 +518,7 @@ func TestConnBeginBatchQueryRowInsert(t *testing.T) { t.Error(err) } if ct.RowsAffected() != 2 { - t.Errorf("ct.RowsAffected() => %v, want %v", ct.RowsAffected, 2) + t.Errorf("ct.RowsAffected() => %v, want %v", ct.RowsAffected(), 2) } batch.Close() @@ -567,7 +567,7 @@ func TestConnBeginBatchQueryPartialReadInsert(t *testing.T) { t.Error(err) } if ct.RowsAffected() != 2 { - t.Errorf("ct.RowsAffected() => %v, want %v", ct.RowsAffected, 2) + t.Errorf("ct.RowsAffected() => %v, want %v", ct.RowsAffected(), 2) } batch.Close() diff --git a/examples/chat/main.go b/examples/chat/main.go index 04f56f7c..83b16c02 100644 --- a/examples/chat/main.go +++ b/examples/chat/main.go @@ -31,8 +31,7 @@ func main() { This message should appear in any other chat instances connected to the same database. -Type "exit" to quit. -`) +Type "exit" to quit.`) scanner := bufio.NewScanner(os.Stdin) for scanner.Scan() { diff --git a/query_test.go b/query_test.go index e268b520..24285175 100644 --- a/query_test.go +++ b/query_test.go @@ -1292,7 +1292,7 @@ func TestConnQueryRowExSingleRoundTrip(t *testing.T) { t.Fatal(err) } if result != 3 { - t.Fatal("result => %d, want %d", result, 3) + t.Fatalf("result => %d, want %d", result, 3) } ensureConnValid(t, conn)