File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1970,10 +1970,18 @@ test_large_inserts_ordered ()
1970
1970
r = (bool )mongoc_bulk_operation_execute (bulk , & reply , & error );
1971
1971
assert (!r );
1972
1972
/* TODO: CDRIVER-662, should always be MONGOC_ERROR_BSON */
1973
- assert (
1973
+ if (! (
1974
1974
(error .domain == MONGOC_ERROR_COMMAND ) ||
1975
1975
(error .domain == MONGOC_ERROR_BSON &&
1976
- error .code == MONGOC_ERROR_BSON_INVALID ));
1976
+ error .code == MONGOC_ERROR_BSON_INVALID ))) {
1977
+ fprintf (stderr , "Expected error domain %d, or domain %d with code %d.\n"
1978
+ "Got domain %d, code %d, message: \"%s\"\n" ,
1979
+ MONGOC_ERROR_COMMAND , MONGOC_ERROR_BSON ,
1980
+ MONGOC_ERROR_BSON_INVALID ,
1981
+ error .domain , error .code , error .message );
1982
+ fflush (stderr );
1983
+ abort ();
1984
+ }
1977
1985
1978
1986
ASSERT_MATCH (& reply , "{'nInserted': 1,"
1979
1987
" 'nMatched': 0,"
You can’t perform that action at this time.
0 commit comments