Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test message check #7236

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/object-store/sync/flx_sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1769,9 +1769,10 @@ TEST_CASE("flx: query on non-queryable field results in query error message", "[
CHECK(!status.is_ok());
std::string reason = status.get_status().reason();
// Depending on the version of baas used, it may return 'Invalid query:' or
// 'Client provided query with bad syntax:'
// 'Client provided query with bad syntax:' or 'Unsupported query for table'
if ((reason.find("Invalid query:") == std::string::npos &&
reason.find("Client provided query with bad syntax:") == std::string::npos) ||
reason.find("Client provided query with bad syntax:") == std::string::npos
&& reason.find("Unsupported query for table") == std::string::npos) ||
reason.find("\"TopLevel\": key \"non_queryable_field\" is not a queryable field") == std::string::npos) {
FAIL(reason);
}
Expand Down