Skip to content

Commit c383b7e

Browse files
committed
do not check output of serverStatus command
`mongohoused` responds with `{ "ok" : 1, "host" : "localhost" }`.
1 parent 76f79e4 commit c383b7e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.mci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ functions:
240240
fi
241241
242242
export MONGOHOUSE_TESTS_PATH="$(pwd)/../data/mongohouse"
243+
export RUN_MONGOHOUSE_TESTS=ON
243244
244245
ulimit -c unlimited || true
245246

src/mongocxx/test/spec/util.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,13 @@ bool should_skip_spec_test(const client& client, document::view test) {
116116
return true;
117117
}
118118

119+
auto run_mongohouse_tests = std::getenv("RUN_MONGOHOUSE_TESTS");
120+
if (run_mongohouse_tests && std::string(run_mongohouse_tests) == "ON") {
121+
// mongohoused does not return `version` field in response to serverStatus.
122+
// Exit early to run the test.
123+
return false;
124+
}
125+
119126
std::string server_version;
120127
try {
121128
server_version = test_util::get_server_version(client);

0 commit comments

Comments
 (0)