Skip to content

Commit

Permalink
fix: solving issue with open go routines
Browse files Browse the repository at this point in the history
  • Loading branch information
gritzkoo committed Nov 6, 2024
1 parent 7f5e3e4 commit 09ea2b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
GOOS: linux
run: |
go mod tidy
go build -a -installsuffix cgo -o entrypoint pkg/**/*.go
go build -race -a -installsuffix cgo -o entrypoint pkg/**/*.go
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: install deps
run: go mod tidy
- name: run test
run: go test -v -coverprofile=profile.cov ./...
run: go test -race -v -coverprofile=profile.cov ./...

- name: Send coverage to coverall.io
uses: shogo82148/actions-goveralls@v1
Expand Down
2 changes: 1 addition & 1 deletion pkg/healthcheck/health_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ func HealthCheckerDetailed(config ApplicationConfig) ApplicationHealthDetailed {
go func() {
wg.Wait()
close(checklist)
result.Duration = time.Since(start).Seconds()
}()
result.Duration = time.Since(start).Seconds()
for chk := range checklist {
result.Integrations = append(result.Integrations, chk)
}
Expand Down

0 comments on commit 09ea2b2

Please sign in to comment.