Skip to content

Commit 8c0e3e5

Browse files
committed
fix: add use of sourceId after flag.parse()
1 parent 6507dae commit 8c0e3e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/data_generator/datagenerator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ func main() {
325325
environment := flag.String("e", "development", "Environment/prefix of config .yaml file name")
326326
testData := flag.String("d", "models_tests_data_config", "Prefix of test data config .yaml file name")
327327
sourceId := flag.Int("s", 1, "Source id for Omop DB")
328-
tests.SetTestSourceId(*sourceId)
329328
flag.Parse()
329+
tests.SetTestSourceId(*sourceId)
330330
Init(*environment, *sourceId)
331331
log.Printf("\n\n=============== GENERATING TEST DATA BASED ON CONFIG ============================\n\n")
332332
RunDataGeneration(*testData)

0 commit comments

Comments
 (0)