Skip to content

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

Try to fix mock server ports

Chocobozzz3c25d37aef66
diff --git a/shared/extra-utils/mock-servers/mock-instances-index.ts b/shared/extra-utils/mock-servers/mock-instances-index.ts
index 2aabef9d26..5baec00dee 100644
--- a/shared/extra-utils/mock-servers/mock-instances-index.ts
+++ b/shared/extra-utils/mock-servers/mock-instances-index.ts
@@ -29,7 +29,7 @@ export class MockInstancesIndex {
})
})
- const port = 42101 + randomInt(1, 100)
+ const port = 42000 + randomInt(1, 1000)
app.listen(port, () => res(port))
})
}
diff --git a/shared/extra-utils/mock-servers/mock-joinpeertube-versions.ts b/shared/extra-utils/mock-servers/mock-joinpeertube-versions.ts
index 5106fc66a2..79be31f615 100644
--- a/shared/extra-utils/mock-servers/mock-joinpeertube-versions.ts
+++ b/shared/extra-utils/mock-servers/mock-joinpeertube-versions.ts
@@ -22,7 +22,7 @@ export class MockJoinPeerTubeVersions {
})
})
- const port = 42201 + randomInt(1, 100)
+ const port = 43000 + randomInt(1, 1000)
app.listen(port, () => res(port))
})
}
diff --git a/shared/extra-utils/mock-servers/mock-object-storage.ts b/shared/extra-utils/mock-servers/mock-object-storage.ts
index b6071b2f29..144f2819dc 100644
--- a/shared/extra-utils/mock-servers/mock-object-storage.ts
+++ b/shared/extra-utils/mock-servers/mock-object-storage.ts
@@ -32,7 +32,7 @@ export class MockObjectStorage {
)
})
- const port = 42301 + randomInt(1, 100)
+ const port = 44000 + randomInt(1, 1000)
this.server = app.listen(port, () => res(port))
})
}
diff --git a/shared/extra-utils/mock-servers/mock-plugin-blocklist.ts b/shared/extra-utils/mock-servers/mock-plugin-blocklist.ts
index 6a71532b58..344d4bdbb7 100644
--- a/shared/extra-utils/mock-servers/mock-plugin-blocklist.ts
+++ b/shared/extra-utils/mock-servers/mock-plugin-blocklist.ts
@@ -23,7 +23,7 @@ export class MockBlocklist {
return res.json(this.body)
})
- const port = 42201 + randomInt(1, 100)
+ const port = 45000 + randomInt(1, 1000)
this.server = app.listen(port, () => res(port))
})
}
diff --git a/shared/extra-utils/mock-servers/mock-proxy.ts b/shared/extra-utils/mock-servers/mock-proxy.ts
index f955d3f9ef..8583250f39 100644
--- a/shared/extra-utils/mock-servers/mock-proxy.ts
+++ b/shared/extra-utils/mock-servers/mock-proxy.ts
@@ -9,7 +9,7 @@ class MockProxy {
initialize () {
return new Promise<number>(res => {
- const port = 42501 + randomInt(1, 100)
+ const port = 46000 + randomInt(1, 1000)
this.server = proxy(createServer())
this.server.listen(port, () => res(port))