diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-01-07 11:42:39 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-01-12 14:22:48 +0300 |
commit | 43a7a52d4bf9baf8ed28bca44c751afd8a93b843 (patch) | |
tree | 0bf53036362430572d392a4ed887d4f01919407f /internal/praefect/auth_test.go | |
parent | 25ea884b54a3be6f7a9f2dfffb885f29f6104c1f (diff) |
testhelper: Use test context in `GetTemporaryGitalySocketFileName()`
The `testhelper.GetTemporaryGitalySocketFileName()` function currently
returns an error. Given that all callers use `require.NoError()` on that
error, let's convert it to instead receive a `testing.TB` and not return
an error.
Diffstat (limited to 'internal/praefect/auth_test.go')
-rw-r--r-- | internal/praefect/auth_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/praefect/auth_test.go b/internal/praefect/auth_test.go index 74d54534a..855cf2806 100644 --- a/internal/praefect/auth_test.go +++ b/internal/praefect/auth_test.go @@ -180,7 +180,7 @@ func runServer(t *testing.T, token string, required bool) (*grpc.Server, string, srv := NewGRPCServer(conf, logEntry, registry, coordinator.StreamDirector, nodeMgr, txMgr, queue, nil, nil) - serverSocketPath := testhelper.GetTemporaryGitalySocketFileName() + serverSocketPath := testhelper.GetTemporaryGitalySocketFileName(t) listener, err := net.Listen("unix", serverSocketPath) require.NoError(t, err) |