From 9f774761bacc37fb32d6a8718e3aa9ccd9035de2 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 20 Apr 2019 10:59:50 -0500 Subject: [PATCH] Fix TestConnLocking --- pgconn_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgconn_test.go b/pgconn_test.go index 2ad02830..d31e8cc9 100644 --- a/pgconn_test.go +++ b/pgconn_test.go @@ -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)