Set explicit limit for getPosts/getComments in tests (#4250)

* Set explicit limit for getPosts/getComments in tests

* pretier
This commit is contained in:
Nutomic 2023-12-12 14:54:54 +01:00 committed by GitHub
parent 95130370f0
commit b2ae69f96c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -249,7 +249,7 @@ test("Admin actions in remote community are not federated to origin", async () =
expect(gammaPost2.post_view.creator_banned_from_community).toBe(false);
});
test("moderator view", async () => {
test.only("moderator view", async () => {
// register a new user with their own community on alpha and post to it
let otherUser = await registerUser(alpha, alphaUrl);

View File

@ -329,6 +329,7 @@ export async function getComments(
post_id: post_id,
type_: listingType,
sort: "New",
limit: 50,
};
return api.getComments(form);
}
@ -793,6 +794,7 @@ export function getPosts(
): Promise<GetPostsResponse> {
let form: GetPosts = {
type_: listingType,
limit: 50,
};
return api.getPosts(form);
}