Skip to content

Commit

Permalink
Add goleak check in pkg/cassandra/gocql/testutils (#5304)
Browse files Browse the repository at this point in the history
## Which problem is this PR solving?
- Part of #5006

## Description of the changes
- added goleak check in `pkg/cassandra/gocql/testutils`

## How was this change tested?
- ``make test ``

## Checklist
- [x] I have read
https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
- [x] I have signed all commits
- [x] I have added unit tests for the new functionality
- [x] I have run lint and test steps successfully
  - for `jaeger`: `make lint test`
  - for `jaeger-ui`: `yarn lint` and `yarn test`

---------

Signed-off-by: danish siddiqui <[email protected]>
  • Loading branch information
danish9039 authored Mar 27, 2024
1 parent 951ee9b commit 0be0cb9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/cassandra/gocql/testutils/udt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/gocql/gocql"

"github.com/jaegertracing/jaeger/pkg/cassandra/gocql/testutils"
goleakTestutils "github.com/jaegertracing/jaeger/pkg/testutils"
)

// CustomUDT is a custom type that implements gocql.UDTMarshaler and gocql.UDTUnmarshaler interfaces.
Expand Down Expand Up @@ -79,3 +80,7 @@ func TestUDTTestCase(t *testing.T) {

testCase.Run(t)
}

func TestMain(m *testing.M) {
goleakTestutils.VerifyGoLeaks(m)
}

0 comments on commit 0be0cb9

Please sign in to comment.