Skip to content

Commit

Permalink
调整Scheduler单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
riveryang committed Jul 23, 2016
1 parent ff09d30 commit 81f5de3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -682,11 +682,7 @@ public StatusMonitorScheduler() {
conf.setGroup("StatusMonitorScheduler");
THREAD_FACTORY.setBaseScheduler(this);
conf.setService((ThreadPoolExecutor) Executors.newFixedThreadPool(1, THREAD_FACTORY));
try {
conf.setCron(new CronExpression("* * * * * ?"));
} catch (final ParseException e) {
// ignore
}
conf.setInterval(50L);
conf.setTotal(1);
conf.setDaemon(Boolean.TRUE);
setConfig(conf);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @author yanghe
* @since 1.3.15
*/
@Scheduler(parallel = 2, interval = 1000, lazy = true, daemon = true)
@Scheduler(parallel = 2, interval = 10, lazy = true, daemon = true)
public class TestScheduler extends BaseScheduler {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @author yanghe
* @since 1.3.15
*/
@Scheduler(parallel = 2, interval = 1000, lazy = true, daemon = true)
@Scheduler(parallel = 2, interval = 10, lazy = true, daemon = true)
public class TestScheduler2 extends BaseScheduler {

@Override
Expand Down

0 comments on commit 81f5de3

Please sign in to comment.