diff --git hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/TestContainerLocalizer.java hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/TestContainerLocalizer.java index 69501f7..b5db817 100644 --- hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/TestContainerLocalizer.java +++ hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/localizer/TestContainerLocalizer.java @@ -166,14 +166,12 @@ public void testContainerLocalizerMain() throws Exception { // $x/usercache/$user/filecache // FileContext drops the scheme if no authority is present before passing // the path to an AbstractFileSystem - Path privcacheAfsPath = new Path(privcache.toUri().getPath()); - verify(spylfs).mkdir(eq(privcacheAfsPath), isA(FsPermission.class), eq(false)); + verify(spylfs).mkdir(eq(privcache), isA(FsPermission.class), eq(false)); Path appDir = new Path(base, new Path(ContainerLocalizer.APPCACHE, appId)); // $x/usercache/$user/appcache/$appId/filecache Path appcache = new Path(appDir, ContainerLocalizer.FILECACHE); - Path appcacheAfsPath = new Path(appcache.toUri().getPath()); - verify(spylfs).mkdir(eq(appcacheAfsPath), isA(FsPermission.class), eq(false)); + verify(spylfs).mkdir(eq(appcache), isA(FsPermission.class), eq(false)); } // verify tokens read at expected location verify(spylfs).open(tokenPath);