HBASE-1773 Fix broken tests (setWriteBuffer now throws IOE)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@805236 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-08-18 00:21:10 +00:00
parent f9c78255bb
commit ed8ba5dff3
2 changed files with 2 additions and 4 deletions

View File

@ -104,7 +104,7 @@ public class TestBatchUpdate extends HBaseClusterTestCase {
}
}
public void testRowsBatchUpdateBufferedManyManyFlushes() {
public void testRowsBatchUpdateBufferedManyManyFlushes() throws IOException {
table.setAutoFlush(false);
table.setWriteBufferSize(10);
ArrayList<BatchUpdate> rowsUpdate = new ArrayList<BatchUpdate>();

View File

@ -42,7 +42,6 @@ public class TestPut extends HBaseClusterTestCase {
private static final int SMALL_LENGTH = 1;
private static final int NB_BATCH_ROWS = 10;
private byte [] value;
private byte [] smallValue;
private HTableDescriptor desc = null;
private HTable table = null;
@ -53,7 +52,6 @@ public class TestPut extends HBaseClusterTestCase {
public TestPut() throws UnsupportedEncodingException {
super();
value = Bytes.toBytes("abcd");
smallValue = Bytes.toBytes("a");
}
@Override
@ -164,7 +162,7 @@ public class TestPut extends HBaseClusterTestCase {
}
}
public void testRowsPutBufferedManyManyFlushes() {
public void testRowsPutBufferedManyManyFlushes() throws IOException {
table.setAutoFlush(false);
table.setWriteBufferSize(10);
ArrayList<Put> rowsUpdate = new ArrayList<Put>();