aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-12-21 10:46:55 +0100
committerChocobozzz <me@florianbigard.com>2022-12-21 10:46:58 +0100
commitdfa4944f3401b5c1225e3235a016510c9f5a7c8a (patch)
tree571cea068b2f8342de27ed801845fcf99bd53331 /server/tests/api
parent57e11a20f12c69927e5739ecf541ed340934ff90 (diff)
downloadPeerTube-dfa4944f3401b5c1225e3235a016510c9f5a7c8a.tar.gz
PeerTube-dfa4944f3401b5c1225e3235a016510c9f5a7c8a.tar.zst
PeerTube-dfa4944f3401b5c1225e3235a016510c9f5a7c8a.zip
Fix local channel stats
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/server/stats.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/tests/api/server/stats.ts b/server/tests/api/server/stats.ts
index 83b0e73d6..942cbeaa4 100644
--- a/server/tests/api/server/stats.ts
+++ b/server/tests/api/server/stats.ts
@@ -131,6 +131,7 @@ describe('Test stats (excluding redundancy)', function () {
131 { 131 {
132 const data = await server.stats.get() 132 const data = await server.stats.get()
133 133
134 expect(data.totalLocalVideoChannels).to.equal(2)
134 expect(data.totalLocalDailyActiveVideoChannels).to.equal(1) 135 expect(data.totalLocalDailyActiveVideoChannels).to.equal(1)
135 expect(data.totalLocalWeeklyActiveVideoChannels).to.equal(1) 136 expect(data.totalLocalWeeklyActiveVideoChannels).to.equal(1)
136 expect(data.totalLocalMonthlyActiveVideoChannels).to.equal(1) 137 expect(data.totalLocalMonthlyActiveVideoChannels).to.equal(1)
@@ -146,6 +147,7 @@ describe('Test stats (excluding redundancy)', function () {
146 147
147 const data = await server.stats.get() 148 const data = await server.stats.get()
148 149
150 expect(data.totalLocalVideoChannels).to.equal(3)
149 expect(data.totalLocalDailyActiveVideoChannels).to.equal(1) 151 expect(data.totalLocalDailyActiveVideoChannels).to.equal(1)
150 expect(data.totalLocalWeeklyActiveVideoChannels).to.equal(1) 152 expect(data.totalLocalWeeklyActiveVideoChannels).to.equal(1)
151 expect(data.totalLocalMonthlyActiveVideoChannels).to.equal(1) 153 expect(data.totalLocalMonthlyActiveVideoChannels).to.equal(1)
@@ -156,6 +158,7 @@ describe('Test stats (excluding redundancy)', function () {
156 158
157 const data = await server.stats.get() 159 const data = await server.stats.get()
158 160
161 expect(data.totalLocalVideoChannels).to.equal(3)
159 expect(data.totalLocalDailyActiveVideoChannels).to.equal(2) 162 expect(data.totalLocalDailyActiveVideoChannels).to.equal(2)
160 expect(data.totalLocalWeeklyActiveVideoChannels).to.equal(2) 163 expect(data.totalLocalWeeklyActiveVideoChannels).to.equal(2)
161 expect(data.totalLocalMonthlyActiveVideoChannels).to.equal(2) 164 expect(data.totalLocalMonthlyActiveVideoChannels).to.equal(2)