Skip to content

Commit

Permalink
fix platform tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonysena committed Jun 28, 2024
1 parent f77f6ff commit 668a6e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/testthat/test-dbms-platforms.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
library(testthat)
library(CohortGenerator)

testPlatform <- function(dbmsDetails) {
cohortTableNames <- getCohortTableNames(cohortTable = dbmsDetails$cohortTable)
platformOutputFolder <- file.path(outputFolder, dbmsDetails$connectionDetails$dbms)
Expand Down Expand Up @@ -68,7 +71,7 @@ testPlatform <- function(dbmsDetails) {
cohortsGenerated <- readCsv(
file = file.path(platformOutputFolder, "cg_cohort_generation.csv")
)
expect_equal(nrow(cohortsGenerated), (nrow(cohortsWithStats) + nrow(cohortsWithSubsets)))
expect_equal(nrow(cohortsGenerated), nrow(cohortsWithSubsets))

cohortCounts <- readCsv(
file = file.path(platformOutputFolder, "cg_cohort_count.csv")
Expand Down

0 comments on commit 668a6e5

Please sign in to comment.