mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-16 12:22:17 +01:00
fixing #157
This commit is contained in:
@@ -538,7 +538,8 @@ func TestOfficeHandler(t *testing.T) {
|
|||||||
srv := New(config)
|
srv := New(config)
|
||||||
endpoint := officeEndpoint(config)
|
endpoint := officeEndpoint(config)
|
||||||
// should return 200.
|
// should return 200.
|
||||||
body, contentType := test.OfficeMultipartForm(t, nil)
|
// note: increased the wait timeout as it happens to timeout from time to time.
|
||||||
|
body, contentType := test.OfficeMultipartForm(t, map[string]string{string(resource.WaitTimeoutArgKey): "30"})
|
||||||
req := httptest.NewRequest(http.MethodPost, endpoint, body)
|
req := httptest.NewRequest(http.MethodPost, endpoint, body)
|
||||||
req.Header.Set(echo.HeaderContentType, contentType)
|
req.Header.Set(echo.HeaderContentType, contentType)
|
||||||
test.AssertStatusCode(t, http.StatusOK, srv, req)
|
test.AssertStatusCode(t, http.StatusOK, srv, req)
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ func cmd(logger xlog.Logger) (*exec.Cmd, error) {
|
|||||||
args := []string{
|
args := []string{
|
||||||
"--no-sandbox",
|
"--no-sandbox",
|
||||||
"--headless",
|
"--headless",
|
||||||
|
// see https://github.com/thecodingmachine/gotenberg/issues/157.
|
||||||
|
"--disable-dev-shm-usage",
|
||||||
// see https://github.com/GoogleChrome/puppeteer/issues/2410.
|
// see https://github.com/GoogleChrome/puppeteer/issues/2410.
|
||||||
"--font-render-hinting=medium",
|
"--font-render-hinting=medium",
|
||||||
"--remote-debugging-port=9222",
|
"--remote-debugging-port=9222",
|
||||||
|
|||||||
Reference in New Issue
Block a user