Add server restart test

pull/6443/merge
Chocobozzz 2024-06-27 11:56:48 +02:00
parent 564089d3e6
commit ef0a6b267b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 9 additions and 0 deletions

View File

@ -56,6 +56,15 @@ describe('Official plugin Privacy Remover', function () {
const video = await servers[0].videos.find({ name: 'remote public' })
expect(video).to.not.exist
})
it('Should not have public privacy after a server restart', async function () {
await servers[0].kill()
await servers[0].run()
const privacies = await servers[0].videos.getPrivacies()
expect(privacies[VideoPrivacy.PUBLIC]).to.not.exist
})
})
describe('When enabling public privacy', function () {