|
@@ -41,11 +41,11 @@ import org.junit.Test;
|
|
|
|
|
|
public class TestContainerLogsPage {
|
|
|
|
|
|
- @Test
|
|
|
+ @Test(timeout=30000)
|
|
|
public void testContainerLogDirs() throws IOException {
|
|
|
- String absLogDir = new File("target",
|
|
|
- TestNMWebServer.class.getSimpleName() + "LogDir").getAbsolutePath();
|
|
|
- String logdirwithFile = "file://" + absLogDir;
|
|
|
+ File absLogDir = new File("target",
|
|
|
+ TestNMWebServer.class.getSimpleName() + "LogDir").getAbsoluteFile();
|
|
|
+ String logdirwithFile = absLogDir.toURI().toString();
|
|
|
Configuration conf = new Configuration();
|
|
|
conf.set(YarnConfiguration.NM_LOG_DIRS, logdirwithFile);
|
|
|
NodeHealthCheckerService healthChecker = new NodeHealthCheckerService();
|