Skip to content

Commit

Permalink
Repair unit test startup error. (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
magestacks committed Mar 25, 2022
1 parent 1bd367d commit 2310bba
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cn.hippo4j.common.web.executor;
package cn.hippo4j.core.executor.web;

import cn.hippo4j.common.config.ApplicationContextHolder;
import lombok.extern.slf4j.Slf4j;
Expand Down Expand Up @@ -49,7 +49,11 @@ public Executor getWebThreadPool() {

@Override
public void run(ApplicationArguments args) {
getWebThreadPool();
try {
getWebThreadPool();
} catch (Exception ex) {
// ignore. Adaptation unit test.
}
}

}

0 comments on commit 2310bba

Please sign in to comment.