@@ -39,6 +39,7 @@ import java.security.SecureRandom
39
39
import static GridFSTestHelper.run
40
40
import static com.mongodb.async.client.Fixture.getDefaultDatabaseName
41
41
import static com.mongodb.async.client.Fixture.getMongoClient
42
+ import static com.mongodb.async.client.gridfs.GridFSTestHelper.runSlow
42
43
import static com.mongodb.async.client.gridfs.helpers.AsyncStreamHelper.toAsyncInputStream
43
44
import static com.mongodb.async.client.gridfs.helpers.AsyncStreamHelper.toAsyncOutputStream
44
45
import static com.mongodb.client.model.Filters.eq
@@ -134,7 +135,7 @@ class GridFSBucketSmokeTestSpecification extends FunctionalSpecification {
134
135
ObjectId fileId
135
136
136
137
when :
137
- fileId = run (gridFSBucket. &uploadFromStream, ' myFile' , toAsyncInputStream(contentBytes), options);
138
+ fileId = runSlow (gridFSBucket. &uploadFromStream, ' myFile' , toAsyncInputStream(contentBytes), options);
138
139
139
140
then :
140
141
run(filesCollection. &count) == 1
@@ -143,7 +144,7 @@ class GridFSBucketSmokeTestSpecification extends FunctionalSpecification {
143
144
when :
144
145
def outStream = new ByteArrayOutputStream ();
145
146
def asyncOutputStream = toAsyncOutputStream(outStream);
146
- run (gridFSBucket. &downloadToStream, fileId, asyncOutputStream)
147
+ runSlow (gridFSBucket. &downloadToStream, fileId, asyncOutputStream)
147
148
148
149
then :
149
150
outStream. toByteArray() == contentBytes
@@ -160,7 +161,7 @@ class GridFSBucketSmokeTestSpecification extends FunctionalSpecification {
160
161
ObjectId fileId
161
162
162
163
when :
163
- fileId = run (gridFSBucket. &uploadFromStream, ' myFile' , toAsyncInputStream(contentBytes), options);
164
+ fileId = runSlow (gridFSBucket. &uploadFromStream, ' myFile' , toAsyncInputStream(contentBytes), options);
164
165
165
166
then :
166
167
run(filesCollection. &count) == 1
@@ -169,7 +170,7 @@ class GridFSBucketSmokeTestSpecification extends FunctionalSpecification {
169
170
when :
170
171
def outStream = new ByteArrayOutputStream ();
171
172
def asyncOutputStream = toAsyncOutputStream(outStream);
172
- run (gridFSBucket. &downloadToStream, fileId, asyncOutputStream)
173
+ runSlow (gridFSBucket. &downloadToStream, fileId, asyncOutputStream)
173
174
174
175
then :
175
176
outStream. toByteArray() == contentBytes
0 commit comments