Skip to content

Commit 6c6533f

Browse files
ethantkoeniglunny
authored andcommitted
Make integration tests more user-friendly (#2536)
1 parent b0f7457 commit 6c6533f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

integrations/integration_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ func initIntegrationTest() {
7474
os.Exit(1)
7575
}
7676
setting.AppPath = path.Join(giteaRoot, "gitea")
77+
if _, err := os.Stat(setting.AppPath); err != nil {
78+
fmt.Printf("Could not find gitea binary at %s\n", setting.AppPath)
79+
os.Exit(1)
80+
}
7781

7882
giteaConf := os.Getenv("GITEA_CONF")
7983
if giteaConf == "" {
@@ -276,7 +280,7 @@ func MakeRequest(t testing.TB, req *http.Request, expectedStatus int) *TestRespo
276280
mac.ServeHTTP(respWriter, req)
277281
if expectedStatus != NoExpectedStatus {
278282
assert.EqualValues(t, expectedStatus, respWriter.HeaderCode,
279-
"Request URL: %s %s", req.URL.String(), buffer.String())
283+
"Request URL: %s", req.URL.String())
280284
}
281285
return &TestResponse{
282286
HeaderCode: respWriter.HeaderCode,

0 commit comments

Comments
 (0)