From afac3ee7ffb0c577a7572b8e5d06080e59a57b71 Mon Sep 17 00:00:00 2001 From: Nutomic <me@nutomic.com> Date: Wed, 26 Jul 2023 18:15:18 +0200 Subject: [PATCH] Skip fragile API tests (#3723) * Skip fragile API tests These tests fail very often for no reason, eg in #3712 and #3696. Better to disable them until they can be fixed. * killall -s1 --- api_tests/run-federation-test.sh | 2 +- api_tests/src/comment.spec.ts | 2 +- api_tests/src/post.spec.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api_tests/run-federation-test.sh b/api_tests/run-federation-test.sh index abced2ad..0d241e2a 100755 --- a/api_tests/run-federation-test.sh +++ b/api_tests/run-federation-test.sh @@ -13,7 +13,7 @@ popd yarn yarn api-test || true -killall lemmy_server +killall -s1 lemmy_server for INSTANCE in lemmy_alpha lemmy_beta lemmy_gamma lemmy_delta lemmy_epsilon; do psql "$LEMMY_DATABASE_URL" -c "DROP DATABASE $INSTANCE" diff --git a/api_tests/src/comment.spec.ts b/api_tests/src/comment.spec.ts index 932c7ffe..19c2797b 100644 --- a/api_tests/src/comment.spec.ts +++ b/api_tests/src/comment.spec.ts @@ -141,7 +141,7 @@ test("Delete a comment", async () => { assertCommentFederation(betaComment2, undeleteCommentRes.comment_view); }); -test("Remove a comment from admin and community on the same instance", async () => { +test.skip("Remove a comment from admin and community on the same instance", async () => { let commentRes = await createComment(alpha, postRes.post_view.post.id); // Get the id for beta diff --git a/api_tests/src/post.spec.ts b/api_tests/src/post.spec.ts index 8ea3ea91..532841b1 100644 --- a/api_tests/src/post.spec.ts +++ b/api_tests/src/post.spec.ts @@ -412,7 +412,7 @@ test("Enforce site ban for federated user", async () => { expect(alphaUserOnBeta2.person?.person.banned).toBe(false); }); -test("Enforce community ban for federated user", async () => { +test.skip("Enforce community ban for federated user", async () => { if (!betaCommunity) { throw "Missing beta community"; } -- 2.44.1