Author: cos Date: Mon Apr 1 20:30:03 2013 New Revision: 1463292 URL: http://svn.apache.org/r1463292 Log: Backport of HADOOP-9405. TestGridmixSummary#testExecutionSummarizer is broken
Modified: hadoop/common/branches/branch-2.0.4-alpha/hadoop-tools/hadoop-gridmix/src/test/java/org/apache/hadoop/mapred/gridmix/TestGridmixSummary.java Modified: hadoop/common/branches/branch-2.0.4-alpha/hadoop-tools/hadoop-gridmix/src/test/java/org/apache/hadoop/mapred/gridmix/TestGridmixSummary.java URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-2.0.4-alpha/hadoop-tools/hadoop-gridmix/src/test/java/org/apache/hadoop/mapred/gridmix/TestGridmixSummary.java?rev=1463292&r1=1463291&r2=1463292&view=diff ============================================================================== --- hadoop/common/branches/branch-2.0.4-alpha/hadoop-tools/hadoop-gridmix/src/test/java/org/apache/hadoop/mapred/gridmix/TestGridmixSummary.java (original) +++ hadoop/common/branches/branch-2.0.4-alpha/hadoop-tools/hadoop-gridmix/src/test/java/org/apache/hadoop/mapred/gridmix/TestGridmixSummary.java Mon Apr 1 20:30:03 2013 @@ -247,7 +247,7 @@ public class TestGridmixSummary { qPath.toString(), es.getInputTraceLocation()); // test expected data size assertEquals("Mismatch in expected data size", - "1.0k", es.getExpectedDataSize()); + "1 K", es.getExpectedDataSize()); // test input data statistics assertEquals("Mismatch in input data statistics", ExecutionSummarizer.stringifyDataStatistics(dataStats), @@ -262,7 +262,7 @@ public class TestGridmixSummary { es.finalize(factory, testTraceFile.toString(), 1024*1024*1024*10L, resolver, dataStats, conf); assertEquals("Mismatch in expected data size", - "10.0g", es.getExpectedDataSize()); + "10 G", es.getExpectedDataSize()); // test trace signature uniqueness // touch the trace file @@ -374,4 +374,4 @@ public class TestGridmixSummary { assertEquals("Cluster summary test failed!", 0, cs.getNumBlacklistedTrackers()); } -} \ No newline at end of file +}