2
0

Merge pull request #332 from manniwood/remove-dup-ifs

Removes duplicate if statements in test
This commit is contained in:
Jack Christensen
2017-09-25 10:13:48 -05:00
committed by GitHub
-8
View File
@@ -67,14 +67,6 @@ func TestTimestampTzTranscode(t *testing.T) {
if !inputTime.Equal(outputTime) {
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