2
0

Fix TestConnLocking

This commit is contained in:
Jack Christensen
2019-04-20 10:59:50 -05:00
parent 3710e52a9a
commit 9f774761ba
+1 -1
View File
@@ -692,7 +692,7 @@ func TestConnLocking(t *testing.T) {
mrr := pgConn.Exec(context.Background(), "select 'Hello, world'")
results, err := pgConn.Exec(context.Background(), "select 'Hello, world'").ReadAll()
assert.Error(t, err)
assert.Equal(t, "connection busy", err.Error())
assert.Equal(t, pgconn.ErrConnBusy, err)
results, err = mrr.ReadAll()
assert.NoError(t, err)