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>2023-02-07 13:43:22 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2023-02-07 14:33:57 +0300
commitde750416503c8c521c6018aa72e09f2ceb407d21 (patch)
treeb2fcc7eaa2a9ad5a0ad9ab22373d877a1c38de0a
parentbac95e30a22efd0d89045974c813a62af8d2dae0 (diff)
gitlab: Convert tests to work with SHA256 object format
Convert tests to work with the SHA256 object format by removing the need for seed repositories.
-rw-r--r--internal/gitlab/http_client_test.go5
-rw-r--r--internal/gitlab/testhelper_test.go2
2 files changed, 0 insertions, 7 deletions
diff --git a/internal/gitlab/http_client_test.go b/internal/gitlab/http_client_test.go
index 809b983b3..fe58fb681 100644
--- a/internal/gitlab/http_client_test.go
+++ b/internal/gitlab/http_client_test.go
@@ -1,5 +1,3 @@
-//go:build !gitaly_test_sha256
-
package gitlab
import (
@@ -42,7 +40,6 @@ func TestAccess_verifyParams(t *testing.T) {
repo, repoPath := gittest.CreateRepository(t, ctx, cfg, gittest.CreateRepositoryConfig{
SkipCreationViaService: true,
- Seed: gittest.SeedGitLabTest,
})
changes := "changes1\nchanges2\nchanges3"
@@ -155,7 +152,6 @@ func TestAccess_escapedAndRelativeURLs(t *testing.T) {
repo, repoPath := gittest.CreateRepository(t, ctx, cfg, gittest.CreateRepositoryConfig{
SkipCreationViaService: true,
- Seed: gittest.SeedGitLabTest,
})
changes := "changes1\nchanges2\nchanges3"
@@ -266,7 +262,6 @@ func TestAccess_allowedResponseHandling(t *testing.T) {
repo, repoPath := gittest.CreateRepository(t, ctx, cfg, gittest.CreateRepositoryConfig{
SkipCreationViaService: true,
- Seed: gittest.SeedGitLabTest,
})
// set git quarantine directories
diff --git a/internal/gitlab/testhelper_test.go b/internal/gitlab/testhelper_test.go
index ed1035952..49143fb81 100644
--- a/internal/gitlab/testhelper_test.go
+++ b/internal/gitlab/testhelper_test.go
@@ -1,5 +1,3 @@
-//go:build !gitaly_test_sha256
-
package gitlab
import (