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

* Set explicit limit for getPosts/getComments in tests

* pretier
api-tests-no-image
Nutomic 5 months ago committed by GitHub
parent 95130370f0
commit b2ae69f96c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);

@ -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);
}

Loading…
Cancel
Save