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:
authorJames Fargher <jfargher@gitlab.com>2022-12-07 02:10:24 +0300
committerJames Fargher <jfargher@gitlab.com>2022-12-07 02:11:18 +0300
commitfc752e03ecad28efb81f3d862c5bc5bedd2ac6cc (patch)
tree39cac7d1fb2a154612fb7d390119c254a2fca426
parentb52d9c244a7672ddce0b64a66a8d1871dddb0203 (diff)
middleware: Rewrite commandstathandler test to use ListRefs
FindAllBranchNames is about to be deprecated. So use a different RPC instead.
-rw-r--r--internal/middleware/commandstatshandler/commandstatshandler_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/middleware/commandstatshandler/commandstatshandler_test.go b/internal/middleware/commandstatshandler/commandstatshandler_test.go
index 8cc9fd8f9..e3583531a 100644
--- a/internal/middleware/commandstatshandler/commandstatshandler_test.go
+++ b/internal/middleware/commandstatshandler/commandstatshandler_test.go
@@ -119,9 +119,9 @@ func TestInterceptor(t *testing.T) {
{
name: "Stream",
performRPC: func(ctx context.Context, client gitalypb.RefServiceClient) {
- req := &gitalypb.FindAllBranchNamesRequest{Repository: repo}
+ req := &gitalypb.ListRefsRequest{Repository: repo, Patterns: [][]byte{[]byte("refs/heads/")}}
- stream, err := client.FindAllBranchNames(ctx, req)
+ stream, err := client.ListRefs(ctx, req)
require.NoError(t, err)
for {