File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
driver-scala/src/integrationTest/scala/org/mongodb/scala/gridfs Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1616
1717package org .mongodb .scala .gridfs
1818
19+ import com .mongodb .client .gridfs .model .GridFSUploadOptions
20+
1921import java .io .ByteArrayOutputStream
2022import java .nio .ByteBuffer
2123import java .nio .channels .Channels
@@ -345,7 +347,11 @@ class GridFSObservableSpec extends RequiresMongoDBISpec with FuturesSpec with Be
345347 override def onComplete (): Unit = completed = true
346348 }
347349 gridFSBucket
348- .uploadFromObservable(" myFile" , Observable (List .fill(1024 )(ByteBuffer .wrap(contentBytes))))
350+ .uploadFromObservable(
351+ " myFile" ,
352+ Observable (List .fill(1024 )(ByteBuffer .wrap(contentBytes))),
353+ new GridFSUploadOptions ().chunkSizeBytes(1024 )
354+ )
349355 .subscribe(observer)
350356
351357 observer.subscription().request(1 )
@@ -368,7 +374,7 @@ class GridFSObservableSpec extends RequiresMongoDBISpec with FuturesSpec with Be
368374 } catch {
369375 case e : Exception =>
370376 if (n > 1 ) {
371- Thread .sleep(250 )
377+ Thread .sleep(500 )
372378 retry(n - 1 )(fn)
373379 } else {
374380 throw e
You can’t perform that action at this time.
0 commit comments