Add server restart test

This commit is contained in:
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

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 () {