Fix tests
authorChocobozzz <me@florianbigard.com>
Mon, 21 Jan 2019 14:58:07 +0000 (15:58 +0100)
committerChocobozzz <me@florianbigard.com>
Mon, 21 Jan 2019 14:58:07 +0000 (15:58 +0100)
server/initializers/constants.ts
shared/utils/users/user-notifications.ts

index 93fdd3f035fa6de8cffe801496a95366526d11f4..dab9863538363800dbbc6a0ce91ecbecf0a3cb5c 100644 (file)
@@ -149,7 +149,7 @@ let SCHEDULER_INTERVALS_MS = {
   actorFollowScores: 60000 * 60, // 1 hour
   removeOldJobs: 60000 * 60, // 1 hour
   updateVideos: 60000, // 1 minute
-  youtubeDLUpdate: 60000 * 60 * 24 // 1 day
+  youtubeDLUpdate: 60000 // 1 day
 }
 
 // ---------------------------------------------------------------------------
index b85d5d2f19f6dc629960babef51171c0f91407ea..c8ed7df306e0d4d18b914fbb1d8fe9eed4f85444 100644 (file)
@@ -274,8 +274,8 @@ async function checkNewActorFollow (
       checkActor(notification.actorFollow.follower)
       expect(notification.actorFollow.follower.displayName).to.equal(followerDisplayName)
       expect(notification.actorFollow.follower.name).to.equal(followerName)
+      expect(notification.actorFollow.follower.host).to.not.be.undefined
 
-      checkActor(notification.actorFollow.following)
       expect(notification.actorFollow.following.displayName).to.equal(followingDisplayName)
       expect(notification.actorFollow.following.type).to.equal(followType)
     } else {