Skip to content

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

Fix tests

Chocobozzz278dcce7f5ff
diff --git a/packages/tests/src/api/object-storage/videos.ts b/packages/tests/src/api/object-storage/videos.ts
index ef3a9170f1..fcb1ba73f5 100644
--- a/packages/tests/src/api/object-storage/videos.ts
+++ b/packages/tests/src/api/object-storage/videos.ts
@@ -256,6 +256,8 @@ function runTestSuite (options: {
it('Should update streaming playlist infohash if object storage base url changed', async function () {
const newBaseMockUrl = `http://example.com`
+ await waitJobs(servers)
+
await servers[1].kill()
await servers[1].run(
diff --git a/packages/tests/src/plugins/plugin-settings.ts b/packages/tests/src/plugins/plugin-settings.ts
index e1dd8e838f..ec43a8aedf 100644
--- a/packages/tests/src/plugins/plugin-settings.ts
+++ b/packages/tests/src/plugins/plugin-settings.ts
@@ -31,8 +31,8 @@ describe('Test plugin settings', function () {
npmName: 'peertube-plugin-test'
})
- expect(registeredSettings.length).to.equal(3)
- expect(registeredSettings.map(r => r.label)).to.have.members([ 'Unique setting', 'Unnamed 1', 'Unnamed 2' ])
+ expect(registeredSettings.length).to.equal(4)
+ expect(registeredSettings.map(r => r.label)).to.have.members([ 'Test setting', 'Unique setting', 'Unnamed 1', 'Unnamed 2' ])
})
it('Should return the latest registered settings', async function () {
@@ -40,7 +40,7 @@ describe('Test plugin settings', function () {
npmName: 'peertube-plugin-test'
})
- expect(registeredSettings[0].options.length).length.to.equal(1)
+ expect(registeredSettings.find(r => r.label === 'Unique setting').options.length).to.equal(1)
})
after(async function () {