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
diff options
context:
space:
mode:
authorPavlo Strokov <pstrokov@gitlab.com>2022-08-20 13:00:44 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2022-08-22 16:44:19 +0300
commit3ad781d2a7800e97cc0a7042860d2a31653469a1 (patch)
tree2a7b650e7425c2e010dbfe6f9801b910851ba6da
parentd1c2f5d0f0459a6cf7c4bd52bc93cc857f2d81b6 (diff)
server factory: Terminate all servers
Missing Stop() calls added to terminate all running servers.
-rw-r--r--internal/gitaly/server/server_factory_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/gitaly/server/server_factory_test.go b/internal/gitaly/server/server_factory_test.go
index 744c9ce65..22baf61c2 100644
--- a/internal/gitaly/server/server_factory_test.go
+++ b/internal/gitaly/server/server_factory_test.go
@@ -97,6 +97,7 @@ func TestGitalyServerFactory(t *testing.T) {
cache.New(cfg, config.NewLocator(cfg)),
nil,
)
+ t.Cleanup(sf.Stop)
checkHealth(t, sf, starter.TCP, "localhost:0")
})
@@ -160,6 +161,7 @@ func TestGitalyServerFactory(t *testing.T) {
cache.New(cfg, config.NewLocator(cfg)),
nil,
)
+ t.Cleanup(sf.Stop)
checkHealth(t, sf, starter.TCP, "localhost:0")