|
@@ -84,8 +84,10 @@ public class TestMRAppMaster {
|
|
|
YarnConfiguration conf = new YarnConfiguration();
|
|
|
conf.set(MRJobConfig.MR_AM_STAGING_DIR, stagingDir);
|
|
|
MRAppMaster.initAndStartAppMaster(appMaster, conf, userName);
|
|
|
- assertEquals(stagingDir + Path.SEPARATOR + userName + Path.SEPARATOR
|
|
|
- + ".staging", appMaster.stagingDirPath.toString());
|
|
|
+ Path userPath = new Path(stagingDir, userName);
|
|
|
+ Path userStagingPath = new Path(userPath, ".staging");
|
|
|
+ assertEquals(userStagingPath.toString(),
|
|
|
+ appMaster.stagingDirPath.toString());
|
|
|
}
|
|
|
|
|
|
@Test
|