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>2020-04-28 12:27:43 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2020-05-11 14:54:40 +0300
commitc954a53a1730732ac8ddd254131a4e2c03acf330 (patch)
tree4290c2f1095c09c74b6d45fe8e846fb6b359497a /internal/testhelper
parent3a85af1d99b46ef3fb0c26fc7bdab749fbcb4cf2 (diff)
Praefect: proper multi-virtual storage support
Make routing dependent on the virtual storage passed and config provided for this virtual storage. Replication job includes virtual storage info to be properly routed when applied to the target storage (support of same storage names for different virtual storages). New validation rules added to verify configuration of praefect.
Diffstat (limited to 'internal/testhelper')
-rw-r--r--internal/testhelper/testhelper.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/testhelper/testhelper.go b/internal/testhelper/testhelper.go
index c3521cd26..aabe1b220 100644
--- a/internal/testhelper/testhelper.go
+++ b/internal/testhelper/testhelper.go
@@ -159,6 +159,8 @@ func TestRepository() *gitalypb.Repository {
// RequireGrpcError asserts the passed err is of the same code as expectedCode.
func RequireGrpcError(t testing.TB, err error, expectedCode codes.Code) {
+ t.Helper()
+
if err == nil {
t.Fatal("Expected an error, got nil")
}