YARN-9491. TestApplicationMasterServiceFair#ApplicationMasterServiceTestBase.testUpdateTrackingUrl fails intermittent. Contributed by Prabhu Joseph.

This commit is contained in:
Giovanni Matteo Fumarola 2019-04-23 15:27:04 -07:00
parent c504eee0c2
commit 4a0ba24959

View File

@ -464,6 +464,10 @@ public void testUpdateTrackingUrl() throws Exception {
allocateRequest.setTrackingUrl(newTrackingUrl); allocateRequest.setTrackingUrl(newTrackingUrl);
am1.allocate(allocateRequest); am1.allocate(allocateRequest);
// wait until RMAppAttemptEventType.STATUS_UPDATE is handled
rm.drainEvents();
Assert.assertEquals(newTrackingUrl, rm.getRMContext().getRMApps().get( Assert.assertEquals(newTrackingUrl, rm.getRMContext().getRMApps().get(
app1.getApplicationId()).getOriginalTrackingUrl()); app1.getApplicationId()).getOriginalTrackingUrl());