From 9cb418e623a137fb03f6540517e6e5f4ff6e92cc Mon Sep 17 00:00:00 2001 From: David Svantesson Date: Sat, 7 Dec 2019 05:21:18 +0100 Subject: Redirect issue if repo has configured external tracker. (#9247) * Redirect issue if repo has configured external tracker. * Handle error * Add tests for redirect * Fix test consistency --- models/repo_list_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'models/repo_list_test.go') diff --git a/models/repo_list_test.go b/models/repo_list_test.go index b1dbf46af0..a1eed18b83 100644 --- a/models/repo_list_test.go +++ b/models/repo_list_test.go @@ -175,10 +175,10 @@ func TestSearchRepository(t *testing.T) { count: 14}, {name: "AllPublic/PublicRepositoriesOfUserIncludingCollaborative", opts: &SearchRepoOptions{Page: 1, PageSize: 10, OwnerID: 15, AllPublic: true, Template: util.OptionalBoolFalse}, - count: 22}, + count: 25}, {name: "AllPublic/PublicAndPrivateRepositoriesOfUserIncludingCollaborative", opts: &SearchRepoOptions{Page: 1, PageSize: 10, OwnerID: 15, Private: true, AllPublic: true, Template: util.OptionalBoolFalse}, - count: 28}, + count: 31}, {name: "AllPublic/PublicAndPrivateRepositoriesOfUserIncludingCollaborativeByName", opts: &SearchRepoOptions{Keyword: "test", Page: 1, PageSize: 10, OwnerID: 15, Private: true, AllPublic: true}, count: 15}, @@ -187,7 +187,7 @@ func TestSearchRepository(t *testing.T) { count: 13}, {name: "AllPublic/PublicRepositoriesOfOrganization", opts: &SearchRepoOptions{Page: 1, PageSize: 10, OwnerID: 17, AllPublic: true, Collaborate: util.OptionalBoolFalse, Template: util.OptionalBoolFalse}, - count: 22}, + count: 25}, {name: "AllTemplates", opts: &SearchRepoOptions{Page: 1, PageSize: 10, Template: util.OptionalBoolTrue}, count: 2}, -- cgit v1.2.3