From f121d0b036fe031dd24f2f549ae5729304bfa59c Mon Sep 17 00:00:00 2001 From: Xiao Chen Date: Tue, 15 Nov 2016 13:54:51 -0800 Subject: [PATCH] =?UTF-8?q?YARN-5875.=20TestTokenClientRMService#testToken?= =?UTF-8?q?RenewalWrongUser=20fails.=20Contributed=20by=20Gergely=20Nov?= =?UTF-8?q?=C3=A1k.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/resourcemanager/TestTokenClientRMService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestTokenClientRMService.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestTokenClientRMService.java index 351f068c2b..2a4e49d910 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestTokenClientRMService.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestTokenClientRMService.java @@ -123,8 +123,9 @@ public Void run() throws Exception { 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; } }