Skip to content

Commit

Permalink
Test connection before invoking unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonysena committed Dec 19, 2023
1 parent c77d0e4 commit d3689b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ if (!(Sys.getenv("CDM5_REDSHIFT_USER") == "" &

# DEBUG:
print(dir(Sys.getenv("DATABASECONNECTOR_JAR_FOLDER")))
conn <- DatabaseConnector::connect(connectionDetails = connectionDetailsList[[length(connectionDetailsList)]]$connectionDetails)
DatabaseConnector::disconnect(conn)
}

# # SQL Server
Expand Down

0 comments on commit d3689b7

Please sign in to comment.