1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-02 15:09:33 -05:00

Use another repo for testing

This commit is contained in:
Lunny Xiao 2024-10-26 00:07:38 -07:00
parent 30a2ff1af6
commit 3230afdf6a
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
10 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
65f1bf27bc3bf70f64657658635e66094edbcb4d
c566fa45406b2f02c181df08077a03f177cf9ba8

View File

@ -1 +1 @@
34865bf344ac1b427da08fcb845a2eab4706067c
65f1bf27bc3bf70f64657658635e66094edbcb4d

View File

@ -193,14 +193,14 @@ func TestAPIGetContentsRefFormats(t *testing.T) {
assert.EqualValues(t, content, string(raw))
// Test with a filepath with 40 characters
fileWith40c := setting.AppURL + "api/v1/repos/user2/repo1/raw/" + "a_file_path_with_40_characters_for_tests"
fileWith40c := setting.AppURL + "api/v1/repos/user13/repo11/raw/" + "a_file_path_with_40_characters_for_tests"
resp = MakeRequest(t, NewRequest(t, http.MethodGet, fileWith40c), http.StatusOK)
raw, err = io.ReadAll(resp.Body)
assert.NoError(t, err)
assert.EqualValues(t, "# test\n", string(raw))
// Test with a filepath with 40 characters and name is a commit SHA
fileWith40c = setting.AppURL + "api/v1/repos/user2/repo1/raw/" + "65f1bf27bc3bf70f64657658635e66094edbcb4d"
fileWith40c = setting.AppURL + "api/v1/repos/user13/repo11/raw/" + "65f1bf27bc3bf70f64657658635e66094edbcb4d"
resp = MakeRequest(t, NewRequest(t, http.MethodGet, fileWith40c), http.StatusOK)
raw, err = io.ReadAll(resp.Body)
assert.NoError(t, err)