-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test for only non-master branch repo view #3190
Conversation
34f346b
to
29a6090
Compare
depend on go-gitea/git#98 |
also fix #3202 |
And the error is still copy git vendor checksum error. |
It's unnecessary to back port since #3204 didn't report 500. |
@@ -67,3 +67,46 @@ | |||
type: 5 | |||
config: "{}" | |||
created_unix: 946684810 | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: please remove extra line this has been fixed, but the other blank line was removed, so the comment persists
integrations/links_test.go
Outdated
} | ||
} | ||
|
||
func TestRepoLinksNoLogin(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add to the existing test in integrations/repo_test.go
, instead of creating a duplicate.
ef52192
to
aeee98f
Compare
What's up with this PR @lunny ? Can you fix Drone ? |
integrations/repo_test.go
Outdated
@@ -74,3 +75,26 @@ func TestViewRepo1CloneLinkAuthorized(t *testing.T) { | |||
sshURL := fmt.Sprintf("%s@%s:user2/repo1.git", setting.RunUser, setting.SSH.Domain) | |||
assert.Equal(t, sshURL, link) | |||
} | |||
|
|||
func testRepoLinksNoLogin(repoPath string, t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to combine these tests with the existing tests above, but perhaps that can be a separate PR.
a117c58
to
168b164
Compare
closed by #3715 |
As title and will fix #3181