diff options
author | Pavlo Strokov <pstrokov@gitlab.com> | 2020-04-28 12:27:43 +0300 |
---|---|---|
committer | Pavlo Strokov <pstrokov@gitlab.com> | 2020-05-11 14:54:40 +0300 |
commit | c954a53a1730732ac8ddd254131a4e2c03acf330 (patch) | |
tree | 4290c2f1095c09c74b6d45fe8e846fb6b359497a /internal/testhelper | |
parent | 3a85af1d99b46ef3fb0c26fc7bdab749fbcb4cf2 (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.go | 2 |
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") } |