Skip to content

Commit 5a932da

Browse files
committed
Fixed tests.
1 parent e0db2b2 commit 5a932da

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

integrations/api_repo_lfs_locks_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ func TestAPILFSLocksNotStarted(t *testing.T) {
2424
repo := models.AssertExistsAndLoadBean(t, &models.Repository{ID: 1}).(*models.Repository)
2525

2626
req := NewRequestf(t, "GET", "/%s/%s.git/info/lfs/locks", user.Name, repo.Name)
27-
MakeRequest(t, req, http.StatusNotFound)
27+
MakeRequest(t, req, http.StatusForbidden)
2828
req = NewRequestf(t, "POST", "/%s/%s.git/info/lfs/locks", user.Name, repo.Name)
29-
MakeRequest(t, req, http.StatusNotFound)
29+
MakeRequest(t, req, http.StatusForbidden)
3030
req = NewRequestf(t, "GET", "/%s/%s.git/info/lfs/locks/verify", user.Name, repo.Name)
31-
MakeRequest(t, req, http.StatusNotFound)
31+
MakeRequest(t, req, http.StatusForbidden)
3232
req = NewRequestf(t, "GET", "/%s/%s.git/info/lfs/locks/10/unlock", user.Name, repo.Name)
33-
MakeRequest(t, req, http.StatusNotFound)
33+
MakeRequest(t, req, http.StatusForbidden)
3434
}
3535

3636
func TestAPILFSLocksNotLogin(t *testing.T) {

integrations/lfs_getobject_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func TestGetLFSRange(t *testing.T) {
198198
{"bytes=0-10", "123456789\n", http.StatusPartialContent},
199199
// end-range bigger than length-1 is ignored
200200
{"bytes=0-11", "123456789\n", http.StatusPartialContent},
201-
{"bytes=11-", "Requested Range Not Satisfiable", http.StatusRequestedRangeNotSatisfiable},
201+
{"bytes=11-", "{\"message\":\"Requested Range Not Satisfiable\"}", http.StatusRequestedRangeNotSatisfiable},
202202
// incorrect header value cause whole header to be ignored
203203
{"bytes=-", "123456789\n", http.StatusOK},
204204
{"foobar", "123456789\n", http.StatusOK},

0 commit comments

Comments
 (0)