Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 8d1c18a

Browse files
committed
暂时关闭超时检查机制
1 parent ccf02a2 commit 8d1c18a

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

src/main/java/org/suren/autotest/web/framework/core/suite/SuiteRunner.java

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -428,18 +428,19 @@ else if(!(pageObj instanceof Page))
428428
//防止一个任务长期执行
429429
PerformAction performAction = new PerformAction(action, pageField,
430430
targetPage, settingUtil, progressInfo);
431-
Future<?> future = executor.submit(performAction);
432-
433-
try
434-
{
435-
future.get(1, TimeUnit.MINUTES);
436-
}
437-
catch (ExecutionException | TimeoutException e)
438-
{
439-
e.printStackTrace();
440-
441-
future.cancel(true);
442-
}
431+
performAction.run();
432+
// Future<?> future = executor.submit(performAction);
433+
//
434+
// try
435+
// {
436+
// future.get(1, TimeUnit.MINUTES);
437+
// }
438+
// catch (ExecutionException | TimeoutException e)
439+
// {
440+
// e.printStackTrace();
441+
//
442+
// future.cancel(true);
443+
// }
443444
}
444445
}
445446

0 commit comments

Comments
 (0)