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:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2021-02-24 13:29:08 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-03-01 12:47:23 +0300
commit2b6d41896f12216267f2e40557e69969158ca65d (patch)
treed4d2e4d1bd52e19f0d0132d26bb9cf549b80a46f /internal/praefect/replicator_test.go
parentea59c5ac1b08b74432ad7a41bd1cbf57b8373c7e (diff)
testhelper: Move object helpers into `gittest`
It's currently not possible to use our git DSL in the testhelper package because of an import cycle between the testhelper and git package. To fix this import cycle, we thus move test-related git helpers into the gittest package. This commit moves the object helpers.
Diffstat (limited to 'internal/praefect/replicator_test.go')
-rw-r--r--internal/praefect/replicator_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/praefect/replicator_test.go b/internal/praefect/replicator_test.go
index b846711ce..7c1ca703c 100644
--- a/internal/praefect/replicator_test.go
+++ b/internal/praefect/replicator_test.go
@@ -246,7 +246,7 @@ func TestReplMgr_ProcessBacklog(t *testing.T) {
testhelper.MustRunCommand(t, nil, "git", "-C", replicatedPath, "cat-file", "-e", commitID)
testhelper.MustRunCommand(t, nil, "git", "-C", replicatedPath, "gc")
- require.Less(t, testhelper.GetGitPackfileDirSize(t, replicatedPath), int64(100), "expect a small pack directory")
+ require.Less(t, gittest.GetGitPackfileDirSize(t, replicatedPath), int64(100), "expect a small pack directory")
require.Equal(t, mockReplicationLatencyHistogramVec.LabelsCalled(), [][]string{{"update"}})
require.Equal(t, mockReplicationDelayHistogramVec.LabelsCalled(), [][]string{{"update"}})