@@ -88,26 +88,26 @@ func TestRunDataGeneration(t *testing.T) {
88
88
if countCohorts != 5 {
89
89
t .Errorf ("Expected 5 cohort_definition records, found %d" , countCohorts )
90
90
}
91
- }
92
91
93
- func TestRunDataGeneration2 (t * testing.T ) {
92
+ // second part of the test...added here to avoid running in parallel with part above:
93
+ tearDown ()
94
94
setUp (t )
95
95
96
96
RunDataGeneration ("example_test_data_config" )
97
97
98
- countCohorts : = tests .GetCount (db .GetAtlasDB (), "cohort_definition" )
98
+ countCohorts = tests .GetCount (db .GetAtlasDB (), "cohort_definition" )
99
99
if countCohorts != 3 {
100
100
t .Errorf ("Expected 3 cohort_definition records, found %d" , countCohorts )
101
101
}
102
- countPersons : = tests .GetCount (tests .GetOmopDataSourceForSourceId (tests .GetTestSourceId ()), "person" )
102
+ countPersons = tests .GetCount (tests .GetOmopDataSourceForSourceId (tests .GetTestSourceId ()), "person" )
103
103
if countPersons != 36 {
104
104
t .Errorf ("Expected 36 persons, found %d" , countPersons )
105
105
}
106
- countObservations : = tests .GetCount (tests .GetOmopDataSourceForSourceId (tests .GetTestSourceId ()), "observation" )
106
+ countObservations = tests .GetCount (tests .GetOmopDataSourceForSourceId (tests .GetTestSourceId ()), "observation" )
107
107
if countObservations != 60 {
108
108
t .Errorf ("Expected 60 observations, found %d" , countObservations )
109
109
}
110
- countConcepts : = tests .GetCount (tests .GetOmopDataSourceForSourceId (tests .GetTestSourceId ()), "concept" )
110
+ countConcepts = tests .GetCount (tests .GetOmopDataSourceForSourceId (tests .GetTestSourceId ()), "concept" )
111
111
if countConcepts != 11 {
112
112
t .Errorf ("Expected 11 concepts, found %d" , countConcepts )
113
113
}
0 commit comments