Skip to content

Commit 73068a4

Browse files
committed
uninitialized warning fix
1 parent b6713d6 commit 73068a4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/mongocxx/test/spec/unified_tests/runner.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -672,15 +672,12 @@ database create_database(document::view object) {
672672
client create_client(document::view object) {
673673
const auto conn = "mongodb://" + get_hostnames(object) + "/?" + uri_options_to_string(object);
674674
auto apm_opts = options::apm{};
675-
auto client_opts = options::client{};
675+
auto client_opts = test_util::add_test_server_api();
676676
// Use specified serverApi or default if none is provided.
677677
if (object["serverApi"]) {
678678
const auto server_api_opts = create_server_api(object);
679679
client_opts.server_api_opts(server_api_opts);
680-
} else {
681-
client_opts = test_util::add_test_server_api();
682680
}
683-
684681
auto& apm = get_apm_map()[string::to_string(object["id"].get_string().value)];
685682

686683
add_observe_events(apm, apm_opts, object);

0 commit comments

Comments
 (0)