Skip to content

Commit 6477e37

Browse files
committed
update the tests
1 parent 88026a4 commit 6477e37

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

integrations/issue_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
func TestNoLoginViewIssue(t *testing.T) {
1717
assert.NoError(t, models.LoadFixtures())
1818

19-
req, err := http.NewRequest("GET", "/user1/repo1/issues/1", nil)
19+
req, err := http.NewRequest("GET", "/user2/repo1/issues/1", nil)
2020
assert.NoError(t, err)
2121
resp := MakeRequest(req)
2222
assert.EqualValues(t, http.StatusOK, resp.HeaderCode)

models/fixtures/repo_unit.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
-
2+
id: 1
3+
repo_id: 1
4+
type: 1
5+
index: 0
6+
config: "{}"
7+
created_unix: 946684810
8+
9+
-
10+
id: 2
11+
repo_id: 1
12+
type: 2
13+
index: 0
14+
config: "{}"
15+
created_unix: 946684810

0 commit comments

Comments
 (0)