diff options
author | Pavlo Strokov <pstrokov@gitlab.com> | 2022-08-20 13:00:44 +0300 |
---|---|---|
committer | Pavlo Strokov <pstrokov@gitlab.com> | 2022-08-22 16:44:19 +0300 |
commit | 3ad781d2a7800e97cc0a7042860d2a31653469a1 (patch) | |
tree | 2a7b650e7425c2e010dbfe6f9801b910851ba6da | |
parent | d1c2f5d0f0459a6cf7c4bd52bc93cc857f2d81b6 (diff) |
server factory: Terminate all servers
Missing Stop() calls added to terminate all running servers.
-rw-r--r-- | internal/gitaly/server/server_factory_test.go | 2 |
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") |