aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/video-views.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/video-views.ts')
-rw-r--r--server/lib/video-views.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/lib/video-views.ts b/server/lib/video-views.ts
index 220b509c2..c024eb93c 100644
--- a/server/lib/video-views.ts
+++ b/server/lib/video-views.ts
@@ -1,3 +1,4 @@
1import { isTestInstance } from '@server/helpers/core-utils'
1import { logger, loggerTagsFactory } from '@server/helpers/logger' 2import { logger, loggerTagsFactory } from '@server/helpers/logger'
2import { VIEW_LIFETIME } from '@server/initializers/constants' 3import { VIEW_LIFETIME } from '@server/initializers/constants'
3import { VideoModel } from '@server/models/video/video' 4import { VideoModel } from '@server/models/video/video'
@@ -98,7 +99,7 @@ export class VideoViews {
98 } 99 }
99 100
100 private async cleanViewers () { 101 private async cleanViewers () {
101 logger.info('Cleaning video viewers.', lTags()) 102 if (!isTestInstance()) logger.info('Cleaning video viewers.', lTags())
102 103
103 for (const videoId of this.viewersPerVideo.keys()) { 104 for (const videoId of this.viewersPerVideo.keys()) {
104 const notBefore = new Date().getTime() 105 const notBefore = new Date().getTime()