This commit is contained in:
Julien Neuhart
2019-12-12 11:14:15 +01:00
parent 8e43df8d95
commit acc7e91c55
2 changed files with 4 additions and 1 deletions

View File

@@ -538,7 +538,8 @@ func TestOfficeHandler(t *testing.T) {
srv := New(config)
endpoint := officeEndpoint(config)
// 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.Header.Set(echo.HeaderContentType, contentType)
test.AssertStatusCode(t, http.StatusOK, srv, req)