+ it('Should not clean old history', async function () {
+ this.timeout(50000)
+
+ killallServers([ server ])
+
+ await reRunServer(server, { history: { videos: { max_age: '10 days' } } })
+
+ await wait(6000)
+
+ // Should still have history
+
+ const res = await listMyVideosHistory(server.url, server.accessToken)
+
+ expect(res.body.total).to.equal(2)
+ })
+
+ it('Should clean old history', async function () {
+ this.timeout(50000)
+
+ killallServers([ server ])
+
+ await reRunServer(server, { history: { videos: { max_age: '5 seconds' } } })
+
+ await wait(6000)
+
+ const res = await listMyVideosHistory(server.url, server.accessToken)
+ expect(res.body.total).to.equal(0)
+ })
+