]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix tests
authorChocobozzz <me@florianbigard.com>
Mon, 20 Apr 2020 07:04:38 +0000 (09:04 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 20 Apr 2020 07:04:38 +0000 (09:04 +0200)
server/lib/job-queue/handlers/activitypub-follow.ts
server/tests/api/notifications/user-notifications.ts

index 94eeed4c0f2db13fdd328b75748ddd8693f2ce1d..e467c5b1b12a1f0f7f1cf8cb469440e1a6445ce8 100644 (file)
@@ -36,7 +36,7 @@ async function processActivityPubFollow (job: Bull.Job) {
   }
 
   if (payload.assertIsChannel && !targetActor.VideoChannel) {
-    logger.warn('Do not follow %s@%s because it is not a channel.', name, host)
+    logger.warn('Do not follow %s@%s because it is not a channel.', payload.name, host)
     return
   }
 
index 625e344faed3a7df38c4f6d7c20ea53cd6469521..3c9c7fe31bbab4a4043163c6ac5059ff037ac2e9 100644 (file)
@@ -1024,15 +1024,16 @@ describe('Test users notifications', function () {
       await removeUserSubscription(servers[1].url, servers[1].accessToken, 'user_1_channel@localhost:' + servers[0].port)
     })
 
-    it('Should notify when a local account is following one of our channel', async function () {
-      this.timeout(10000)
-
-      await addUserSubscription(servers[0].url, servers[0].accessToken, 'user_1@localhost:' + servers[0].port)
-
-      await waitJobs(servers)
-
-      await checkNewActorFollow(baseParams, 'account', 'root', 'super root name', myUserName, 'presence')
-    })
+    // PeerTube does not support accout -> account follows
+    // it('Should notify when a local account is following one of our channel', async function () {
+    //   this.timeout(10000)
+    //
+    //   await addUserSubscription(servers[0].url, servers[0].accessToken, 'user_1@localhost:' + servers[0].port)
+    //
+    //   await waitJobs(servers)
+    //
+    //   await checkNewActorFollow(baseParams, 'account', 'root', 'super root name', myUserName, 'presence')
+    // })
 
     it('Should notify when a remote account is following one of our channel', async function () {
       this.timeout(10000)