diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2020-03-24 09:08:37 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2020-03-24 09:08:37 +0300 |
commit | c2e591d1848adc3e51e624b734237cf5a6078a31 (patch) | |
tree | 2bf3a6a600b7a415431817959fd8577f304aa7e0 | |
parent | 4168c74aba2a188b3c42cad8ebba67c70da3a198 (diff) |
smarthttp: Adjust to changed function signature of `runSmartHTTPServer`
The signature of `runSmartHTTPServer()` recently changed to not return a
server anymore, but a stop function instead. Update tests in the
smarthttp package that still use the old signature and thus fail to
compile now.
-rw-r--r-- | internal/service/smarthttp/receive_pack_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/service/smarthttp/receive_pack_test.go b/internal/service/smarthttp/receive_pack_test.go index bac6ed7ad..0c78c3f7c 100644 --- a/internal/service/smarthttp/receive_pack_test.go +++ b/internal/service/smarthttp/receive_pack_test.go @@ -300,8 +300,8 @@ func TestInvalidTimezone(t *testing.T) { _, cleanup := testhelper.CaptureHookEnv(t) defer cleanup() - server, socket := runSmartHTTPServer(t) - defer server.Stop() + socket, stop := runSmartHTTPServer(t) + defer stop() repo, repoPath, cleanup := testhelper.NewTestRepo(t) defer cleanup() |