diff options
author | Will Chandler <wchandler@gitlab.com> | 2023-08-29 18:44:53 +0300 |
---|---|---|
committer | Will Chandler <wchandler@gitlab.com> | 2023-08-30 16:39:23 +0300 |
commit | 4eed7c1ce988552463a16fa118181cb2d8cb5e9e (patch) | |
tree | 88caf294701ead11200bc833f60b616b2f7a9961 /internal/gitaly/server/auth_test.go | |
parent | 8148ba7c49b07175592cc61f0c5ae33613985a1e (diff) |
Move TestMain into testhelper_test.go
Our style guide states that the `TestMain` function should be placed in
a file named `testhelper_test.go` for consistency's sake. A number of
packages were placing the test in a standard test file.
In cases where `TestMain` was the only function in that file rename it
to `testhelper_test.go`. If there were other functions, relocate
`TestMain` into a new `testhelper_test.go` file.
Diffstat (limited to 'internal/gitaly/server/auth_test.go')
-rw-r--r-- | internal/gitaly/server/auth_test.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/internal/gitaly/server/auth_test.go b/internal/gitaly/server/auth_test.go index 385a494d2..a30599de9 100644 --- a/internal/gitaly/server/auth_test.go +++ b/internal/gitaly/server/auth_test.go @@ -39,10 +39,6 @@ import ( healthpb "google.golang.org/grpc/health/grpc_health_v1" ) -func TestMain(m *testing.M) { - testhelper.Run(m) -} - func TestSanity(t *testing.T) { serverSocketPath := runServer(t, testcfg.Build(t)) |