HBASE-7113 TestGzipFilter is flaky with jdk1.7

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1406797 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jxiang 2012-11-07 20:45:52 +00:00
parent 329796cac5
commit e4a99e9794
1 changed files with 3 additions and 2 deletions

View File

@ -115,6 +115,8 @@ public class TestGzipFilter {
is.read(value, 0, VALUE_1.length);
assertTrue(Bytes.equals(value, VALUE_1));
is.close();
testScannerResultCodes();
}
@Test
@ -132,8 +134,7 @@ public class TestGzipFilter {
assertTrue(contentEncoding == null || !contentEncoding.contains("gzip"));
}
@Test
public void testScannerResultCodes() throws Exception {
void testScannerResultCodes() throws Exception {
Header[] headers = new Header[3];
headers[0] = new Header("Content-Type", Constants.MIMETYPE_XML);
headers[1] = new Header("Accept", Constants.MIMETYPE_JSON);