YARN-5343. TestContinuousScheduling#testSortedNodes fails intermittently. (Yufei Gu via kasha)

This commit is contained in:
Karthik Kambatla 2016-08-09 16:50:57 -07:00
parent 9c6a4383ca
commit 7992c0b42c
1 changed files with 2 additions and 2 deletions

View File

@ -167,8 +167,8 @@ public class TestContinuousScheduling extends FairSchedulerTestBase {
Assert.assertEquals(2, nodes.size()); Assert.assertEquals(2, nodes.size());
} }
private void triggerSchedulingAttempt() { private void triggerSchedulingAttempt() throws InterruptedException {
mockClock.tickMsec( Thread.sleep(
2 * scheduler.getConf().getContinuousSchedulingSleepMs()); 2 * scheduler.getConf().getContinuousSchedulingSleepMs());
} }
} }