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/gitaly/service/namespace/namespace_test.go')
-rw-r--r--internal/gitaly/service/namespace/namespace_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/gitaly/service/namespace/namespace_test.go b/internal/gitaly/service/namespace/namespace_test.go
index e8baeeeed..2f33eaf6f 100644
--- a/internal/gitaly/service/namespace/namespace_test.go
+++ b/internal/gitaly/service/namespace/namespace_test.go
@@ -9,6 +9,7 @@ import (
"gitlab.com/gitlab-org/gitaly/internal/gitaly/config"
"gitlab.com/gitlab-org/gitaly/internal/helper"
"gitlab.com/gitlab-org/gitaly/internal/testhelper"
+ "gitlab.com/gitlab-org/gitaly/internal/testhelper/testserver"
"gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"
"google.golang.org/grpc/codes"
)
@@ -27,7 +28,7 @@ func testMain(m *testing.M) int {
}
func TestNamespaceExists(t *testing.T) {
- cfg, client := setupNamespaceService(t)
+ cfg, client := setupNamespaceService(t, testserver.WithDisablePraefect())
existingStorage := cfg.Storages[0]
ctx, cancel := testhelper.Context()
@@ -209,7 +210,7 @@ func TestRemoveNamespace(t *testing.T) {
if tc.errorCode == codes.OK {
require.Equal(t, existingStorage.Name, tc.request.StorageName, "sanity check")
- testhelper.AssertPathNotExists(t, filepath.Join(existingStorage.Path, tc.request.Name))
+ require.NoFileExists(t, filepath.Join(existingStorage.Path, tc.request.Name))
}
})
}