File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
test/kotlin/sirius/db/testutil Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ private void initialize() {
353
353
ds .setMaxIdle (maxIdle );
354
354
ds .setTestOnBorrow (testOnBorrow );
355
355
ds .setValidationQuery (validationQuery );
356
- ds .setMaxWait (Duration .ofMillis ( 1000 ));
356
+ ds .setMaxWait (Duration .ofSeconds ( 1 ));
357
357
}
358
358
}
359
359
Original file line number Diff line number Diff line change 8
8
9
9
package sirius.db.testutil
10
10
11
- import org.mockito.Mockito.spy
11
+ import io.mockk.spyk
12
12
import sirius.db.mixing.types.BaseEntityRef
13
13
import sirius.db.mongo.MongoEntity
14
14
import sirius.db.mongo.types.MongoRef
@@ -23,7 +23,7 @@ class MongoMocks {
23
23
* @param entity which is to be wrapped
24
24
*/
25
25
fun <E : MongoEntity > asMongoRef (entity : E ): MongoRef <E > {
26
- val mongoRef = spy (MongoRef .on(entity.javaClass, BaseEntityRef .OnDelete .IGNORE ))
26
+ val mongoRef = spyk (MongoRef .on(entity.javaClass, BaseEntityRef .OnDelete .IGNORE ))
27
27
mongoRef.setValue(entity)
28
28
return mongoRef
29
29
}
You can’t perform that action at this time.
0 commit comments