diff options
author | Will Chandler <wchandler@gitlab.com> | 2023-08-29 16:10:12 +0300 |
---|---|---|
committer | Will Chandler <wchandler@gitlab.com> | 2023-08-30 16:39:23 +0300 |
commit | 677d45ffc63859d9319b4d113e0b8bedd3959406 (patch) | |
tree | 8d9c18097de4ae75fadf5bd3bc9cfab230ec3c2a /internal/bootstrap | |
parent | 4eed7c1ce988552463a16fa118181cb2d8cb5e9e (diff) |
Add missing TestMain calls
Many packages fail to call `TestMain` as part of their tests, which is
required to invoke our goroutine leak detector. Create a new
`testhelper_test.go` file and include a `TestMain` function that
executes `testhelper.Run`.
Diffstat (limited to 'internal/bootstrap')
-rw-r--r-- | internal/bootstrap/starter/testhelper_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/bootstrap/starter/testhelper_test.go b/internal/bootstrap/starter/testhelper_test.go new file mode 100644 index 000000000..ab294fdf6 --- /dev/null +++ b/internal/bootstrap/starter/testhelper_test.go @@ -0,0 +1,11 @@ +package starter + +import ( + "testing" + + "gitlab.com/gitlab-org/gitaly/v16/internal/testhelper" +) + +func TestMain(m *testing.M) { + testhelper.Run(m) +} |