Skip to content

Commit 4329555

Browse files
Shraya Ramanihanumantmk
authored andcommitted
changed test for db error messages reflecting changes in server
Closes #125
1 parent 0be19d0 commit 4329555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test-mongoc-database.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ test_command (void)
9898
assert (!r);
9999
assert (error.domain == MONGOC_ERROR_QUERY);
100100
assert (error.code == MONGOC_ERROR_QUERY_COMMAND_NOT_FOUND);
101-
assert (!strcmp ("no such cmd: a_non_existing_command", error.message));
101+
assert (strstr (error.message, "a_non_existing_command"));
102102

103103
mongoc_database_destroy (database);
104104
mongoc_client_destroy (client);

0 commit comments

Comments
 (0)