YARN-5875. TestTokenClientRMService#testTokenRenewalWrongUser fails. Contributed by Gergely Novák.

This commit is contained in:
Xiao Chen 2016-11-15 13:54:51 -08:00
parent 264ddb13ff
commit f121d0b036
1 changed files with 3 additions and 2 deletions

View File

@ -123,8 +123,9 @@ public class TestTokenClientRMService {
return null;
} catch (YarnException ex) {
Assert.assertTrue(ex.getMessage().contains(
owner.getUserName() + " tries to renew a token with renewer "
+ other.getUserName()));
owner.getUserName() + " tries to renew a token"));
Assert.assertTrue(ex.getMessage().contains(
"with non-matching renewer " + other.getUserName()));
throw ex;
}
}