From 6477e3708a7aeecb236d5461e7bb310f68b6f063 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 28 Apr 2017 22:11:17 +0800 Subject: [PATCH] update the tests --- integrations/issue_test.go | 2 +- models/fixtures/repo_unit.yml | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 models/fixtures/repo_unit.yml diff --git a/integrations/issue_test.go b/integrations/issue_test.go index 930f09df32388..7d1fecfa324bb 100644 --- a/integrations/issue_test.go +++ b/integrations/issue_test.go @@ -16,7 +16,7 @@ import ( func TestNoLoginViewIssue(t *testing.T) { assert.NoError(t, models.LoadFixtures()) - req, err := http.NewRequest("GET", "/user1/repo1/issues/1", nil) + req, err := http.NewRequest("GET", "/user2/repo1/issues/1", nil) assert.NoError(t, err) resp := MakeRequest(req) assert.EqualValues(t, http.StatusOK, resp.HeaderCode) diff --git a/models/fixtures/repo_unit.yml b/models/fixtures/repo_unit.yml new file mode 100644 index 0000000000000..a41784db96ee2 --- /dev/null +++ b/models/fixtures/repo_unit.yml @@ -0,0 +1,15 @@ +- + id: 1 + repo_id: 1 + type: 1 + index: 0 + config: "{}" + created_unix: 946684810 + +- + id: 2 + repo_id: 1 + type: 2 + index: 0 + config: "{}" + created_unix: 946684810 \ No newline at end of file