mirror of https://github.com/jackc/pgx.git
Removes duplicate if/else
parent
015b56a04f
commit
94cee0dce0
|
@ -67,14 +67,6 @@ func TestTimestampTzTranscode(t *testing.T) {
|
||||||
if !inputTime.Equal(outputTime) {
|
if !inputTime.Equal(outputTime) {
|
||||||
t.Errorf("Did not transcode time successfully: %v is not %v", outputTime, inputTime)
|
t.Errorf("Did not transcode time successfully: %v is not %v", outputTime, inputTime)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = conn.QueryRow("select $1::timestamptz", inputTime).Scan(&outputTime)
|
|
||||||
if err != nil {
|
|
||||||
t.Fatalf("QueryRow Scan failed: %v", err)
|
|
||||||
}
|
|
||||||
if !inputTime.Equal(outputTime) {
|
|
||||||
t.Errorf("Did not transcode time successfully: %v is not %v", outputTime, inputTime)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO - move these tests to pgtype
|
// TODO - move these tests to pgtype
|
||||||
|
|
Loading…
Reference in New Issue