Skip to content
Snippets Groups Projects
Commit 5fda3d2c authored by Malte E's avatar Malte E
Browse files

remove struct from requests.hpp, make Test check for LE

parent faeee8ce
No related branches found
No related tags found
No related merge requests found
......@@ -439,15 +439,5 @@ struct SetPusher
friend void to_json(nlohmann::json &obj, const SetPusher &req);
};
struct userDirectorySearch
{
//! The maximum number of results to return. Defaults to 10.
std::optional<int> limit;
//! Required: The term to search for
std::string search_term;
friend void to_json(nlohmann::json &obj, const userDirectorySearch &data);
};
} // namespace requests
} // namespace mtx
......@@ -1897,7 +1897,7 @@ TEST(ClientAPI, Users)
"Bob",
[alice](const mtx::responses::Users &users, RequestErr err) {
check_error(err);
EXPECT_EQ(users.results.size(), 1);
EXPECT_LE(users.results.size(), 1);
EXPECT_EQ(users.limited, true);
},
0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment