Skip to content

Commit 6b01a07

Browse files
committed
fix: resolve test error
Signed-off-by: David van der Spek <david.vanderspek@flyrlabs.com>
1 parent ac30564 commit 6b01a07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

postgresql/resource_postgresql_database_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ func checkTableOwnership(
387387
t *testing.T, dsn, owner, tableName string,
388388
) resource.TestCheckFunc {
389389
return func(s *terraform.State) error {
390-
db, err := sql.Open("postgres", dsn)
390+
client := testAccProvider.Meta().(*Client)
391+
db, err := client.Connect()
391392
if err != nil {
392393
t.Fatalf("could not create connection pool: %v", err)
393394
}

0 commit comments

Comments
 (0)