Skip to content

Commit 9ef54cf

Browse files
committed
Fix code review issues
1 parent 636cac1 commit 9ef54cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libmongoc/tests/test-mongoc-error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ test_state_change_helper (uint32_t domain, bool expect_error)
185185
}
186186

187187
/* Fallback code that's used when no code was returned */
188-
error.code = 17;
188+
error.code = MONGOC_ERROR_QUERY_FAILURE;
189189
bson_strncpy (error.message, "... not master ...", sizeof (error.message));
190190
BSON_ASSERT (expect_error == _mongoc_error_is_not_master (&error));
191191
BSON_ASSERT (!_mongoc_error_is_recovering (&error));

src/libmongoc/tests/test-mongoc-topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2053,7 +2053,7 @@ test_request_scan_on_error ()
20532053
true /* should_scan */,
20542054
true /* should_mark_unknown */,
20552055
NULL /* server_err */);
2056-
/* for an unknown code, the message should still be checked. */
2056+
/* for an unknown code, the message should not be checked. */
20572057
TEST_BOTH ("{'ok': 0, 'code': 12345, 'errmsg': 'not master'}",
20582058
false /* should_scan */,
20592059
false /* should_mark_unknown */,

0 commit comments

Comments
 (0)