Amend missing resume token tests for wire version 8+
@@ -513,6 +513,7 @@ _test_resume_token_error (const char *id_projection)
client = test_framework_client_new ();
ASSERT (client);
+ mongoc_client_set_error_api (client, MONGOC_ERROR_API_VERSION_2);
coll = drop_and_get_coll (client, "db", "coll_missing_resume");
ASSERT (coll);
@@ -544,6 +545,12 @@ _test_resume_token_error (const char *id_projection)
MONGOC_ERROR_CURSOR,
MONGOC_ERROR_CHANGE_STREAM_NO_RESUME_TOKEN,
"Cannot provide resume functionality");
+ } else {
+ ASSERT_ERROR_CONTAINS (err,
+ MONGOC_ERROR_SERVER,
+ 280,
+ "Only transformations that retain the unmodified "
+ "_id field are allowed.");
}
bson_destroy (&opts);
