mirror of https://github.com/openspug/spug
improve test timeout
parent
e3589ee5b8
commit
0fa7d1a7c5
|
@ -114,7 +114,7 @@ class ComForm extends React.Component {
|
||||||
const type = this.props.form.getFieldValue('type');
|
const type = this.props.form.getFieldValue('type');
|
||||||
const formData = this._getFieldsValue(type);
|
const formData = this._getFieldsValue(type);
|
||||||
formData['type'] = type;
|
formData['type'] = type;
|
||||||
http.post('/api/monitor/test/', formData)
|
http.post('/api/monitor/test/', formData, {timeout: 120000})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.is_success) {
|
if (res.is_success) {
|
||||||
Modal.success({content: res.message})
|
Modal.success({content: res.message})
|
||||||
|
|
|
@ -114,7 +114,7 @@ class ComTable extends React.Component {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: '操作确认',
|
title: '操作确认',
|
||||||
content: '立即执行该任务(不影响调度规则,且不会触发失败通知)?',
|
content: '立即执行该任务(不影响调度规则,且不会触发失败通知)?',
|
||||||
onOk: () => http.post(`/api/schedule/${text.id}/`)
|
onOk: () => http.post(`/api/schedule/${text.id}/`, null, {timeout: 120000})
|
||||||
.then(res => store.showInfo(text, res))
|
.then(res => store.showInfo(text, res))
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue