minor, make DefaultSchedulerTest more stable
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/6d47976a Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/6d47976a Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/6d47976a Branch: refs/heads/master Commit: 6d47976a435e42084d9f09853598acd84825c687 Parents: a3b339d Author: Li Yang <liy...@apache.org> Authored: Sat Sep 16 10:18:05 2017 +0800 Committer: SHAOFENG SHI <shaofeng...@gmail.com> Committed: Sat Sep 16 10:32:41 2017 +0800 ---------------------------------------------------------------------- .../org/apache/kylin/job/impl/threadpool/DefaultSchedulerTest.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/6d47976a/core-job/src/test/java/org/apache/kylin/job/impl/threadpool/DefaultSchedulerTest.java ---------------------------------------------------------------------- diff --git a/core-job/src/test/java/org/apache/kylin/job/impl/threadpool/DefaultSchedulerTest.java b/core-job/src/test/java/org/apache/kylin/job/impl/threadpool/DefaultSchedulerTest.java index 1aa2f4f..c8b251d 100644 --- a/core-job/src/test/java/org/apache/kylin/job/impl/threadpool/DefaultSchedulerTest.java +++ b/core-job/src/test/java/org/apache/kylin/job/impl/threadpool/DefaultSchedulerTest.java @@ -109,6 +109,7 @@ public class DefaultSchedulerTest extends BaseSchedulerTest { SelfStopExecutable task1 = new SelfStopExecutable(); job.addTask(task1); jobService.addJob(job); + Thread.sleep(1100); // give time to launch job/task1 waitForJobStatus(job.getId(), ExecutableState.RUNNING, 500); jobService.discardJob(job.getId()); waitForJobFinish(job.getId());