File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
driver-sync/src/test/functional/com/mongodb/client Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 28
28
import com .mongodb .client .model .changestream .ChangeStreamDocument ;
29
29
import com .mongodb .client .model .changestream .FullDocumentBeforeChange ;
30
30
import com .mongodb .client .model .changestream .SplitEvent ;
31
+ import com .mongodb .connection .ServerVersion ;
31
32
import com .mongodb .internal .operation .AggregateResponseBatchCursor ;
32
33
import org .bson .BsonArray ;
33
34
import org .bson .BsonDocument ;
39
40
40
41
import java .lang .reflect .Field ;
41
42
43
+ import static com .mongodb .ClusterFixture .getServerVersion ;
42
44
import static com .mongodb .ClusterFixture .isDiscoverableReplicaSet ;
43
45
import static com .mongodb .ClusterFixture .serverVersionAtLeast ;
44
46
import static com .mongodb .ClusterFixture .serverVersionLessThan ;
@@ -408,7 +410,7 @@ public void test16GetResumeTokenReturnsIdOfPreviousDocument() {
408
410
409
411
@ Test
410
412
public void test19SplitChangeStreamEvents () {
411
- assumeTrue (serverVersionAtLeast ( 7 , 0 ) );
413
+ assumeTrue (getServerVersion (). compareTo ( new ServerVersion ( asList ( 6 , 0 , 9 ))) >= 0 );
412
414
collection .drop ();
413
415
database .createCollection (
414
416
getClass ().getName (),
You can’t perform that action at this time.
0 commit comments