Skip to content

Commit 23323c9

Browse files
committed
Fix deadlocked test
Caused by golang/go@dec95d8
1 parent ed1a26d commit 23323c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conn_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ func TestPgpass(t *testing.T) {
160160
rows, err := txn.Query("SELECT USER")
161161
if err != nil {
162162
txn.Rollback()
163-
rows.Close()
164163
if expected != "fail" {
165164
t.Fatalf(reason, err)
166165
}
167166
} else {
167+
rows.Close()
168168
if expected != "ok" {
169169
t.Fatalf(reason, err)
170170
}

0 commit comments

Comments
 (0)