diff options
author | Ethan Koenig <ethantkoenig@gmail.com> | 2017-09-18 01:35:42 -0700 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-09-18 16:35:42 +0800 |
commit | 6c6533fb31bbc82e7907b1dc233212045849569b (patch) | |
tree | 3698b93480aca518a00f0eb6ed71e7aeaede0df1 /integrations/integration_test.go | |
parent | b0f7457d9ef6e16d4a3197f7544035d5d387e201 (diff) | |
download | gitea-6c6533fb31bbc82e7907b1dc233212045849569b.tar.gz gitea-6c6533fb31bbc82e7907b1dc233212045849569b.zip |
Make integration tests more user-friendly (#2536)
Diffstat (limited to 'integrations/integration_test.go')
-rw-r--r-- | integrations/integration_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/integrations/integration_test.go b/integrations/integration_test.go index e18be523cb..bfe5cef93d 100644 --- a/integrations/integration_test.go +++ b/integrations/integration_test.go @@ -74,6 +74,10 @@ func initIntegrationTest() { os.Exit(1) } setting.AppPath = path.Join(giteaRoot, "gitea") + if _, err := os.Stat(setting.AppPath); err != nil { + fmt.Printf("Could not find gitea binary at %s\n", setting.AppPath) + os.Exit(1) + } giteaConf := os.Getenv("GITEA_CONF") if giteaConf == "" { @@ -276,7 +280,7 @@ func MakeRequest(t testing.TB, req *http.Request, expectedStatus int) *TestRespo mac.ServeHTTP(respWriter, req) if expectedStatus != NoExpectedStatus { assert.EqualValues(t, expectedStatus, respWriter.HeaderCode, - "Request URL: %s %s", req.URL.String(), buffer.String()) + "Request URL: %s", req.URL.String()) } return &TestResponse{ HeaderCode: respWriter.HeaderCode, |