File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/mongocxx/test/spec/unified_tests Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -672,15 +672,12 @@ database create_database(document::view object) {
672
672
client create_client (document::view object) {
673
673
const auto conn = " mongodb://" + get_hostnames (object) + " /?" + uri_options_to_string (object);
674
674
auto apm_opts = options::apm{};
675
- auto client_opts = options::client{} ;
675
+ auto client_opts = test_util::add_test_server_api () ;
676
676
// Use specified serverApi or default if none is provided.
677
677
if (object[" serverApi" ]) {
678
678
const auto server_api_opts = create_server_api (object);
679
679
client_opts.server_api_opts (server_api_opts);
680
- } else {
681
- client_opts = test_util::add_test_server_api ();
682
680
}
683
-
684
681
auto & apm = get_apm_map ()[string::to_string (object[" id" ].get_string ().value )];
685
682
686
683
add_observe_events (apm, apm_opts, object);
You can’t perform that action at this time.
0 commit comments