Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorWill Chandler <wchandler@gitlab.com>2023-08-29 16:10:12 +0300
committerWill Chandler <wchandler@gitlab.com>2023-08-30 16:39:23 +0300
commit677d45ffc63859d9319b4d113e0b8bedd3959406 (patch)
tree8d9c18097de4ae75fadf5bd3bc9cfab230ec3c2a /cmd
parent4eed7c1ce988552463a16fa118181cb2d8cb5e9e (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 'cmd')
-rw-r--r--cmd/gitaly-gpg/testhelper_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmd/gitaly-gpg/testhelper_test.go b/cmd/gitaly-gpg/testhelper_test.go
new file mode 100644
index 000000000..432115dc0
--- /dev/null
+++ b/cmd/gitaly-gpg/testhelper_test.go
@@ -0,0 +1,11 @@
+package main
+
+import (
+ "testing"
+
+ "gitlab.com/gitlab-org/gitaly/v16/internal/testhelper"
+)
+
+func TestMain(m *testing.M) {
+ testhelper.Run(m)
+}