diff --git a/integration-test/integration_test.go b/integration-test/integration_test.go index 40b8c521..a297ee7a 100644 --- a/integration-test/integration_test.go +++ b/integration-test/integration_test.go @@ -68,7 +68,8 @@ func TestHTTPDoTranslate(t *testing.T) { }` Test(t, Description("DoTranslate Success"), - Post(basePath+"/translation/do-translate"), + BaseURL(basePath), + Post("/translation/do-translate"), Send().Headers("Content-Type").Add("application/json"), Send().Body().String(body), Expect().Status().Equal(http.StatusOK), @@ -81,7 +82,8 @@ func TestHTTPDoTranslate(t *testing.T) { }` Test(t, Description("DoTranslate Fail"), - Post(basePath+"/translation/do-translate"), + BaseURL(basePath), + Post("/translation/do-translate"), Send().Headers("Content-Type").Add("application/json"), Send().Body().String(body), Expect().Status().Equal(http.StatusBadRequest), @@ -93,7 +95,8 @@ func TestHTTPDoTranslate(t *testing.T) { func TestHTTPHistory(t *testing.T) { Test(t, Description("History Success"), - Get(basePath+"/translation/history"), + BaseURL(basePath), + Get("/translation/history"), Expect().Status().Equal(http.StatusOK), Expect().Body().String().Contains(`{"history":[{`), )