Skip to content

Commit 7d24183

Browse files
committed
CDRIVER-2250 nModified is not available in MongoDB 2.4
1 parent 32442ad commit 7d24183

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test-mongoc-collection.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,11 @@ test_insert_null (void)
506506
bson_iter_t iter;
507507
uint32_t len;
508508

509+
/* nModified isn't available in 2.4 */
510+
if (!test_framework_max_wire_version_at_least (2)) {
511+
return;
512+
}
513+
509514
client = test_framework_client_new ();
510515
ASSERT (client);
511516

@@ -556,6 +561,7 @@ test_insert_null (void)
556561
ASSERT_OR_PRINT (ret, error);
557562
ret = mongoc_bulk_operation_execute (bulk, &reply, &error);
558563
ASSERT_OR_PRINT (ret, error);
564+
559565
ASSERT_MATCH (&reply,
560566
"{'nInserted': 0,"
561567
" 'nMatched': 1,"

0 commit comments

Comments
 (0)