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:
Diffstat (limited to 'internal/praefect/nodes/health_manager_test.go')
-rw-r--r--internal/praefect/nodes/health_manager_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/praefect/nodes/health_manager_test.go b/internal/praefect/nodes/health_manager_test.go
index 4e4a4bf0e..07b359090 100644
--- a/internal/praefect/nodes/health_manager_test.go
+++ b/internal/praefect/nodes/health_manager_test.go
@@ -24,6 +24,7 @@ func (m mockHealthClient) Check(ctx context.Context, r *grpc_health_v1.HealthChe
}
func TestHealthManager(t *testing.T) {
+ t.Parallel()
ctx, cancel := testhelper.Context()
defer cancel()
@@ -37,6 +38,8 @@ func TestHealthManager(t *testing.T) {
HealthConsensus map[string][]string
}
+ db := glsql.NewDB(t)
+
for _, tc := range []struct {
desc string
healthChecks HealthChecks
@@ -470,7 +473,7 @@ func TestHealthManager(t *testing.T) {
},
} {
t.Run(tc.desc, func(t *testing.T) {
- db := getDB(t)
+ db.TruncateAll(t)
healthStatus := map[string]grpc_health_v1.HealthCheckResponse_ServingStatus{}
// healthManagers are cached in order to keep the internal state intact between different