Skip to content

Commit 39902f4

Browse files
committed
remove no-longer-applicable try/catch
1 parent c383b7e commit 39902f4

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/mongocxx/test/spec/util.cpp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,7 @@ bool should_skip_spec_test(const client& client, document::view test) {
123123
return false;
124124
}
125125

126-
std::string server_version;
127-
try {
128-
server_version = test_util::get_server_version(client);
129-
} catch (const operation_exception& e) {
130-
// Mongohouse does not support serverStatus, so if we get an error from
131-
// serverStatus, exit this logic early and run the test.
132-
std::string message = e.what();
133-
if (message.find("command serverStatus is unsupported") != std::string::npos) {
134-
return false;
135-
}
136-
137-
throw e;
138-
}
126+
std::string server_version = test_util::get_server_version(client);
139127

140128
std::string topology = test_util::get_topology(client);
141129

0 commit comments

Comments
 (0)