mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix total videos stats
This commit is contained in:
@@ -9,7 +9,7 @@ import {
|
||||
doubleFollow,
|
||||
flushAndRunMultipleServers,
|
||||
follow,
|
||||
ServerInfo,
|
||||
ServerInfo, unfollow,
|
||||
uploadVideo,
|
||||
viewVideo,
|
||||
wait
|
||||
@@ -95,6 +95,16 @@ describe('Test stats (excluding redundancy)', function () {
|
||||
expect(data.totalInstanceFollowers).to.equal(0)
|
||||
})
|
||||
|
||||
it('Should have the correct total videos stats after an unfollow', async function () {
|
||||
await unfollow(servers[2].url, servers[2].accessToken, servers[0])
|
||||
await waitJobs(servers)
|
||||
|
||||
const res = await getStats(servers[2].url)
|
||||
const data: ServerStats = res.body
|
||||
|
||||
expect(data.totalVideos).to.equal(0)
|
||||
})
|
||||
|
||||
after(async function () {
|
||||
await cleanupTests(servers)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user