diff options
Diffstat (limited to 'internal/transaction/voting/testhelper_test.go')
-rw-r--r-- | internal/transaction/voting/testhelper_test.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/internal/transaction/voting/testhelper_test.go b/internal/transaction/voting/testhelper_test.go new file mode 100644 index 000000000..dd6467db4 --- /dev/null +++ b/internal/transaction/voting/testhelper_test.go @@ -0,0 +1,21 @@ +package voting + +import ( + "os" + "testing" + + "gitlab.com/gitlab-org/gitaly/internal/testhelper" +) + +func TestMain(m *testing.M) { + os.Exit(testMain(m)) +} + +func testMain(m *testing.M) int { + defer testhelper.MustHaveNoChildProcess() + + cleanup := testhelper.Configure() + defer cleanup() + + return m.Run() +} |