Skip to content

Commit

Permalink
patch: checkup logging typos
Browse files Browse the repository at this point in the history
  • Loading branch information
brouillette committed Jul 3, 2023
1 parent d102203 commit edd300d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/api/tests/build/api/genes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func TestGenesIngestion(t *testing.T) {
// TODO: avoid potential infinite loop
counter := 0
for {
fmt.Printf("\rChecking state of the genes ingestion.. [%d]\n", counter)
fmt.Printf("\rChecking state of the genes ingestion.. [%d]", counter)

// make the call
ingReqsUrl := fmt.Sprintf(GenesIngestionRequestsPath, cfg.Api.Url)
Expand All @@ -69,7 +69,7 @@ func TestGenesIngestion(t *testing.T) {
}
}
if numFilesDone == numFilesRunning {
fmt.Println("Done, moving on..")
fmt.Println("\nDone, moving on..")
break
} else {
// pause
Expand All @@ -82,7 +82,7 @@ func TestGenesIngestion(t *testing.T) {
// TODO: avoid potential infinite loop
counter = 0
for {
fmt.Printf("\rChecking ingestion stats.. [%d]\n", counter)
fmt.Printf("\rChecking ingestion stats.. [%d]", counter)
// pause
time.Sleep(3 * time.Second)

Expand All @@ -94,11 +94,11 @@ func TestGenesIngestion(t *testing.T) {
fmt.Println(stats.NumAdded)
fmt.Println(stats.NumFlushed)
if stats.NumAdded == stats.NumFlushed {
fmt.Println("Done, moving on..")
fmt.Println("\nDone, moving on..")
break
}
if stats.NumFailed > 0 {
log.Fatal("More than one gene failed to flush")
log.Fatal("\nMore than one gene failed to flush")
}

// pause
Expand Down
10 changes: 5 additions & 5 deletions src/api/tests/build/api/variants_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func TestDemoVcfIngestion(t *testing.T) {
// TODO: avoid potential infinite loop
counter := 0
for {
fmt.Printf("\rChecking state of the variants ingestion.. [%d]\n", counter)
fmt.Printf("\rChecking state of the variants ingestion.. [%d]", counter)

// make the call
ingReqsUrl := fmt.Sprintf("%s/variants/ingestion/requests", cfg.Api.Url)
Expand All @@ -120,7 +120,7 @@ func TestDemoVcfIngestion(t *testing.T) {
}
}
if foundDone {
fmt.Println("Done, moving on..")
fmt.Println("\nDone, moving on..")
break
} else {
// pause
Expand All @@ -133,7 +133,7 @@ func TestDemoVcfIngestion(t *testing.T) {
// TODO: avoid potential infinite loop
counter = 0
for {
fmt.Printf("\rChecking ingestion stats.. [%d]\n", counter)
fmt.Printf("\rChecking ingestion stats.. [%d]", counter)
// pause
time.Sleep(3 * time.Second)

Expand All @@ -145,11 +145,11 @@ func TestDemoVcfIngestion(t *testing.T) {
fmt.Println(stats.NumAdded)
fmt.Println(stats.NumFlushed)
if stats.NumAdded == stats.NumFlushed {
fmt.Println("Done, moving on..")
fmt.Println("\nDone, moving on..")
break
}
if stats.NumFailed > 0 {
log.Fatal("More than one variant failed to flush")
log.Fatal("\nMore than one variant failed to flush")
}

// pause
Expand Down

0 comments on commit edd300d

Please sign in to comment.