HADOOP-12590. TestCompressorDecompressor failing without stack traces (John Zhuge via stevel)

This commit is contained in:
Steve Loughran 2016-01-09 11:10:20 +00:00
parent 84bf5122e4
commit d7ed04758c
2 changed files with 8 additions and 2 deletions

View File

@ -674,6 +674,9 @@ Release 2.9.0 - UNRELEASED
HADOOP-12573. TestRPC.testClientBackOff failing.
(Xiao Chen via stevel)
HADOOP-12590. TestCompressorDecompressor failing without stack traces
(John Zhuge via stevel)
Release 2.8.0 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -26,6 +26,7 @@
import org.apache.hadoop.io.compress.snappy.SnappyDecompressor;
import org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater;
import org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater;
import org.apache.hadoop.test.GenericTestUtils;
import org.junit.Test;
import com.google.common.collect.ImmutableSet;
@ -66,7 +67,8 @@ public void testCompressorDecompressor() {
.test();
} catch (Exception ex) {
fail("testCompressorDecompressor error !!!" + ex);
GenericTestUtils.assertExceptionContains(
"testCompressorDecompressor error !!!", ex);
}
}
@ -88,7 +90,8 @@ public void testCompressorDecompressorWithExeedBufferLimit() {
.test();
} catch (Exception ex) {
fail("testCompressorDecompressorWithExeedBufferLimit error !!!" + ex);
GenericTestUtils.assertExceptionContains(
"testCompressorDecompressorWithExeedBufferLimit error !!!", ex);
}
}