We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55769c4 commit d355b36Copy full SHA for d355b36
src/test/com/mongodb/gridfs/GridFSTest.java
@@ -198,6 +198,18 @@ public void testBadChunkSize() throws Exception {
198
assertArrayEquals(randomBytes, savedFileBytes);
199
}
200
201
+ @Test(groups = {"basic"})
202
+ public void getBigChunkSize() throws Exception {
203
+ GridFSInputFile file = _fs.createFile("512kb_bucket");
204
+ file.setChunkSize(file.getChunkSize() * 2);
205
+ OutputStream os = file.getOutputStream();
206
+ for (int i = 0; i < 1024; i++) {
207
+ os.write(new byte[GridFS.DEFAULT_CHUNKSIZE / 1024 + 1]);
208
+ }
209
+ os.close();
210
211
+
212
213
@Test(groups = {"basic"})
214
public void testInputStreamSkipping() throws Exception {
215
//int chunkSize = 5;
0 commit comments