YARN-6655. Fix compilation failure in TestServiceApiUtil due to changes in YARN-6716.

This commit is contained in:
Billie Rinaldi 2017-06-30 09:12:29 -07:00 committed by Jian He
parent 59a9b4f438
commit 14f3f3b42e
1 changed files with 2 additions and 1 deletions

View File

@ -463,7 +463,8 @@ public class TestServiceApiUtil {
Application application = createValidApplication(null); Application application = createValidApplication(null);
application.setComponents(Arrays.asList(c, d, e)); application.setComponents(Arrays.asList(c, d, e));
try { try {
ServiceApiUtil.validateAndResolveApplication(application, sfs); ServiceApiUtil.validateAndResolveApplication(application, sfs,
CONF_DEFAULT_DNS);
Assert.fail(EXCEPTION_PREFIX + "components with bad dependencies"); Assert.fail(EXCEPTION_PREFIX + "components with bad dependencies");
} catch (IllegalArgumentException ex) { } catch (IllegalArgumentException ex) {
assertEquals(String.format( assertEquals(String.format(