Cleanups
Cleanups suggested by gometalinter tools.
This commit is contained in:
+3
-2
@@ -3,11 +3,12 @@ package pgx_test
|
||||
import (
|
||||
"bytes"
|
||||
"database/sql"
|
||||
"github.com/jackc/pgx"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/jackc/pgx"
|
||||
|
||||
"github.com/shopspring/decimal"
|
||||
)
|
||||
|
||||
@@ -784,7 +785,7 @@ func TestQueryRowCoreByteSlice(t *testing.T) {
|
||||
t.Errorf("%d. Unexpected failure: %v (sql -> %v)", i, err, tt.sql)
|
||||
}
|
||||
|
||||
if bytes.Compare(actual, tt.expected) != 0 {
|
||||
if !bytes.Equal(actual, tt.expected) {
|
||||
t.Errorf("%d. Expected %v, got %v (sql -> %v)", i, tt.expected, actual, tt.sql)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user