@@ -522,8 +522,8 @@ _test_topology_reconcile_retire (bool pooled)
522
522
* step 4 & 5: the primary tells the scanner to retire the secondary node */
523
523
future = future_client_read_command_with_opts (
524
524
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}" ) );
527
527
mock_server_replies_ok_and_destroys (request );
528
528
ASSERT_OR_PRINT (future_get_bool (future ), error );
529
529
@@ -661,8 +661,8 @@ _test_topology_reconcile_add (bool pooled)
661
661
* step 4 & 5: we add the secondary to the topology description */
662
662
future = future_client_read_command_with_opts (
663
663
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}" ) );
666
666
mock_server_replies_ok_and_destroys (request );
667
667
ASSERT_OR_PRINT (future_get_bool (future ), error );
668
668
0 commit comments