]> Untitled Git - lemmy.git/commitdiff
Adding unfollows.
authorDessalines <tyhou13@gmx.com>
Fri, 18 Dec 2020 02:10:20 +0000 (21:10 -0500)
committerDessalines <tyhou13@gmx.com>
Fri, 18 Dec 2020 02:10:20 +0000 (21:10 -0500)
.drone.yml
api_tests/src/post.spec.ts

index 5e3ed48e02d390120d5bb15f6fc1582671412c9f..ec0d69fee9a944ee6e4debcea4e1f82f81f25eab 100644 (file)
@@ -63,14 +63,13 @@ steps:
       - mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server
 
   - name: run federation tests
-    image: node:15.4.0
+    image: node:15-alpine3.12
     environment:
       LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432
       DO_WRITE_HOSTS_FILE: 1
     commands:
       - ls -la target/lemmy_server
-      # - apk add bash curl postgresql-client
-      - apt-get update && apt-get install -y postgresql postgresql-contrib
+      - apk add bash curl postgresql-client
       - bash api_tests/prepare-drone-federation-test.sh
       - cd api_tests/
       - yarn
index d90cc99c368f168fe49827405e0dcad4305a2abd..98ecd920c0336b86e4900bb2ee3f15af34d02024 100644 (file)
@@ -35,14 +35,19 @@ beforeAll(async () => {
   await setupLogins();
   let search = await searchForBetaCommunity(alpha);
   betaCommunity = search.communities[0];
+  await unfollows();
 });
 
 afterAll(async () => {
+  await unfollows();
+});
+
+async function unfollows() {
   await unfollowRemotes(alpha);
   await unfollowRemotes(gamma);
   await unfollowRemotes(delta);
   await unfollowRemotes(epsilon);
-});
+}
 
 function assertPostFederation(
   postOne: Post,