提交 66dcf5a0 authored 作者: Thomas Mueller's avatar Thomas Mueller

MVTableEngine: test

上级 02d5b115
...@@ -619,8 +619,9 @@ public class TestFileSystem extends TestBase { ...@@ -619,8 +619,9 @@ public class TestFileSystem extends TestBase {
} }
case 1: { case 1: {
int arrayLen = random.nextInt(1000); int arrayLen = random.nextInt(1000);
int offset = random.nextInt(arrayLen / 10); int offset = arrayLen / 10;
int len = random.nextInt(arrayLen - offset); offset = offset == 0 ? 0 : random.nextInt(offset);
int len = arrayLen == 0 ? 0 : random.nextInt(arrayLen - offset);
byte[] buffer = new byte[arrayLen]; byte[] buffer = new byte[arrayLen];
ByteBuffer byteBuff = createSlicedBuffer(buffer, offset, len); ByteBuffer byteBuff = createSlicedBuffer(buffer, offset, len);
random.nextBytes(buffer); random.nextBytes(buffer);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论