Skip to content

Commit 0a86284

Browse files
committed
Reduce number of chunks in reactive GridFS small chunks test
JAVA-3735
1 parent c19a212 commit 0a86284

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver-reactive-streams/src/test/functional/com/mongodb/reactivestreams/client/gridfs/GridFSPublisherSpecification.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,14 @@ class GridFSPublisherSpecification extends FunctionalSpecification {
117117

118118
def 'should round trip with small chunks'() {
119119
given:
120-
def contentSize = 1024 * 500
120+
def contentSize = 1024 * 10
121121
def chunkSize = 10
122122
def contentBytes = new byte[contentSize]
123123
new SecureRandom().nextBytes(contentBytes)
124124
def options = new GridFSUploadOptions().chunkSizeBytes(chunkSize)
125125

126126
when:
127-
def fileId = run(MINUTES.toMillis(5), gridFSBucket.&uploadFromPublisher, 'myFile',
127+
def fileId = run(gridFSBucket.&uploadFromPublisher, 'myFile',
128128
createPublisher(ByteBuffer.wrap(contentBytes)), options)
129129

130130
then:

0 commit comments

Comments
 (0)