Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Add server restart test

Chocobozzzef0a6b267b22
diff --git a/packages/tests/src/external-plugins/privacy-remover.ts b/packages/tests/src/external-plugins/privacy-remover.ts
index ed10fd868e..467234f031 100644
--- a/packages/tests/src/external-plugins/privacy-remover.ts
+++ b/packages/tests/src/external-plugins/privacy-remover.ts
@@ -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 () {