diff options
author | Chocobozzz <me@florianbigard.com> | 2019-01-21 15:58:07 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-01-21 15:58:07 +0100 |
commit | ebff55d8d6747d0627f135ab668f43e0d6125a37 (patch) | |
tree | 0fe3225db33b9b03b03bad4a8eba0961a8b9ce06 | |
parent | 0f80cb03c66f4eb429a296f7c722e91d78e29ade (diff) | |
download | PeerTube-ebff55d8d6747d0627f135ab668f43e0d6125a37.tar.gz PeerTube-ebff55d8d6747d0627f135ab668f43e0d6125a37.tar.zst PeerTube-ebff55d8d6747d0627f135ab668f43e0d6125a37.zip |
Fix tests
-rw-r--r-- | server/initializers/constants.ts | 2 | ||||
-rw-r--r-- | shared/utils/users/user-notifications.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 93fdd3f03..dab986353 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -149,7 +149,7 @@ let SCHEDULER_INTERVALS_MS = { | |||
149 | actorFollowScores: 60000 * 60, // 1 hour | 149 | actorFollowScores: 60000 * 60, // 1 hour |
150 | removeOldJobs: 60000 * 60, // 1 hour | 150 | removeOldJobs: 60000 * 60, // 1 hour |
151 | updateVideos: 60000, // 1 minute | 151 | updateVideos: 60000, // 1 minute |
152 | youtubeDLUpdate: 60000 * 60 * 24 // 1 day | 152 | youtubeDLUpdate: 60000 // 1 day |
153 | } | 153 | } |
154 | 154 | ||
155 | // --------------------------------------------------------------------------- | 155 | // --------------------------------------------------------------------------- |
diff --git a/shared/utils/users/user-notifications.ts b/shared/utils/users/user-notifications.ts index b85d5d2f1..c8ed7df30 100644 --- a/shared/utils/users/user-notifications.ts +++ b/shared/utils/users/user-notifications.ts | |||
@@ -274,8 +274,8 @@ async function checkNewActorFollow ( | |||
274 | checkActor(notification.actorFollow.follower) | 274 | checkActor(notification.actorFollow.follower) |
275 | expect(notification.actorFollow.follower.displayName).to.equal(followerDisplayName) | 275 | expect(notification.actorFollow.follower.displayName).to.equal(followerDisplayName) |
276 | expect(notification.actorFollow.follower.name).to.equal(followerName) | 276 | expect(notification.actorFollow.follower.name).to.equal(followerName) |
277 | expect(notification.actorFollow.follower.host).to.not.be.undefined | ||
277 | 278 | ||
278 | checkActor(notification.actorFollow.following) | ||
279 | expect(notification.actorFollow.following.displayName).to.equal(followingDisplayName) | 279 | expect(notification.actorFollow.following.displayName).to.equal(followingDisplayName) |
280 | expect(notification.actorFollow.following.type).to.equal(followType) | 280 | expect(notification.actorFollow.following.type).to.equal(followType) |
281 | } else { | 281 | } else { |