improve test timeout

pull/437/head^2
vapao 2020-11-10 13:39:39 +08:00
parent e3589ee5b8
commit 0fa7d1a7c5
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ class ComForm extends React.Component {
const type = this.props.form.getFieldValue('type');
const formData = this._getFieldsValue(type);
formData['type'] = type;
http.post('/api/monitor/test/', formData)
http.post('/api/monitor/test/', formData, {timeout: 120000})
.then(res => {
if (res.is_success) {
Modal.success({content: res.message})

View File

@ -114,7 +114,7 @@ class ComTable extends React.Component {
Modal.confirm({
title: '操作确认',
content: '立即执行该任务(不影响调度规则,且不会触发失败通知)?',
onOk: () => http.post(`/api/schedule/${text.id}/`)
onOk: () => http.post(`/api/schedule/${text.id}/`, null, {timeout: 120000})
.then(res => store.showInfo(text, res))
})
};