Skip to content

Commit 3b34795

Browse files
committed
CDRIVER-2638 fix mock server tests
1 parent 52004fb commit 3b34795

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test-mongoc-topology-reconcile.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,8 @@ _test_topology_reconcile_retire (bool pooled)
522522
* step 4 & 5: the primary tells the scanner to retire the secondary node */
523523
future = future_client_read_command_with_opts (
524524
client, "admin", tmp_bson ("{'ping': 1}"), NULL, NULL, NULL, &error);
525-
request = mock_server_receives_command (
526-
primary, "admin", MONGOC_QUERY_NONE, "{'ping': 1}");
525+
request = mock_server_receives_msg (
526+
primary, MONGOC_QUERY_NONE, tmp_bson("{'ping': 1}"));
527527
mock_server_replies_ok_and_destroys (request);
528528
ASSERT_OR_PRINT (future_get_bool (future), error);
529529

@@ -661,8 +661,8 @@ _test_topology_reconcile_add (bool pooled)
661661
* step 4 & 5: we add the secondary to the topology description */
662662
future = future_client_read_command_with_opts (
663663
client, "admin", tmp_bson ("{'ping': 1}"), NULL, NULL, NULL, &error);
664-
request = mock_server_receives_command (
665-
primary, "admin", MONGOC_QUERY_NONE, "{'ping': 1}");
664+
request = mock_server_receives_msg (
665+
primary, MONGOC_QUERY_NONE, tmp_bson("{'ping': 1}"));
666666
mock_server_replies_ok_and_destroys (request);
667667
ASSERT_OR_PRINT (future_get_bool (future), error);
668668

0 commit comments

Comments
 (0)