Skip to content

Commit

Permalink
fix: add use of sourceId after flag.parse()
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterlukasse committed Oct 3, 2024
1 parent 6507dae commit 8c0e3e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/data_generator/datagenerator.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ func main() {
environment := flag.String("e", "development", "Environment/prefix of config .yaml file name")
testData := flag.String("d", "models_tests_data_config", "Prefix of test data config .yaml file name")
sourceId := flag.Int("s", 1, "Source id for Omop DB")
tests.SetTestSourceId(*sourceId)
flag.Parse()
tests.SetTestSourceId(*sourceId)
Init(*environment, *sourceId)
log.Printf("\n\n=============== GENERATING TEST DATA BASED ON CONFIG ============================\n\n")
RunDataGeneration(*testData)
Expand Down

0 comments on commit 8c0e3e5

Please sign in to comment.