Skip to content

Commit 60fef92

Browse files
committed
Surface entity_map_match error if expectResult fails
The entity_map_match error contains relevant information about the failed match (e.g. field path). This is consistent with error reporting for error.expectResult later in the function.
1 parent dcde207 commit 60fef92

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libmongoc/tests/unified/result.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,8 @@ result_check (result_t *result,
368368
result->value,
369369
result->array_of_root_docs,
370370
error)) {
371-
test_set_error (error,
372-
"checking expectResult: %s\n",
373-
bson_val_to_json (expect_result));
371+
test_diagnostics_error_info ("checking expectResult: %s",
372+
bson_val_to_json (expect_result));
374373
goto done;
375374
}
376375
}

0 commit comments

Comments
 (0)