Fix TestConnCopyFromDataWriteAfterErrorAndReturn always being skipped

pull/1364/head
Jack Christensen 2022-10-29 13:17:52 -05:00
parent 9a207178f6
commit c9c166b8b2
1 changed files with 2 additions and 2 deletions

View File

@ -1870,9 +1870,9 @@ func (d delayedReader) Read(p []byte) (int, error) {
// https://github.com/jackc/pgconn/issues/128
func TestConnCopyFromDataWriteAfterErrorAndReturn(t *testing.T) {
connString := os.Getenv("PGX_TEST_CONN_STRING")
connString := os.Getenv("PGX_TEST_DATABASE")
if connString == "" {
t.Skipf("Skipping due to missing environment variable %v", "PGX_TEST_CONN_STRING")
t.Skipf("Skipping due to missing environment variable %v", "PGX_TEST_DATABASE")
}
config, err := pgconn.ParseConfig(connString)