Fix go vet issues

prefer-simple-protocol
Jack Christensen 2018-01-13 10:08:02 -06:00
parent 4fb47ac8c9
commit 119ba7a449
3 changed files with 4 additions and 5 deletions

View File

@ -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()

View File

@ -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() {

View File

@ -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)