We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0db2b2 commit 5a932daCopy full SHA for 5a932da
integrations/api_repo_lfs_locks_test.go
@@ -24,13 +24,13 @@ func TestAPILFSLocksNotStarted(t *testing.T) {
24
repo := models.AssertExistsAndLoadBean(t, &models.Repository{ID: 1}).(*models.Repository)
25
26
req := NewRequestf(t, "GET", "/%s/%s.git/info/lfs/locks", user.Name, repo.Name)
27
- MakeRequest(t, req, http.StatusNotFound)
+ MakeRequest(t, req, http.StatusForbidden)
28
req = NewRequestf(t, "POST", "/%s/%s.git/info/lfs/locks", user.Name, repo.Name)
29
30
req = NewRequestf(t, "GET", "/%s/%s.git/info/lfs/locks/verify", user.Name, repo.Name)
31
32
req = NewRequestf(t, "GET", "/%s/%s.git/info/lfs/locks/10/unlock", user.Name, repo.Name)
33
34
}
35
36
func TestAPILFSLocksNotLogin(t *testing.T) {
integrations/lfs_getobject_test.go
@@ -198,7 +198,7 @@ func TestGetLFSRange(t *testing.T) {
198
{"bytes=0-10", "123456789\n", http.StatusPartialContent},
199
// end-range bigger than length-1 is ignored
200
{"bytes=0-11", "123456789\n", http.StatusPartialContent},
201
- {"bytes=11-", "Requested Range Not Satisfiable", http.StatusRequestedRangeNotSatisfiable},
+ {"bytes=11-", "{\"message\":\"Requested Range Not Satisfiable\"}", http.StatusRequestedRangeNotSatisfiable},
202
// incorrect header value cause whole header to be ignored
203
{"bytes=-", "123456789\n", http.StatusOK},
204
{"foobar", "123456789\n", http.StatusOK},
0 commit comments